Fix performance regression in Kraken audio-oscillator.

BUG=325529
LOG=y
R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/103903002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18244 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
bmeurer@chromium.org 2013-12-04 08:25:58 +00:00
parent 86fa1cfceb
commit a3c454da9d

View File

@ -2625,7 +2625,7 @@ void BinaryOpIC::State::Update(Handle<Object> left,
right->ToInt32(&fixed_right_arg_value) &&
fixed_right_arg_value > 0 &&
IsPowerOf2(fixed_right_arg_value) &&
FixedRightArgValueField::is_valid(fixed_right_arg_value) &&
FixedRightArgValueField::is_valid(WhichPowerOf2(fixed_right_arg_value)) &&
(left_kind_ == SMI || left_kind_ == INT32) &&
(result_kind_ == NONE || !fixed_right_arg_.has_value);
fixed_right_arg_ = Maybe<int32_t>(has_fixed_right_arg,