| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index fac4cf3edcf7ea6770b837b3ad1d94d63a7f4ea4..e52ec65c4b7632ac81cb082bfcd5d727cce3a574 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -922,13 +922,14 @@ HValue* CodeStubGraphBuilder<BinaryOpICStub>::BuildCodeInitializedStub() {
|
| Push(BuildBinaryOperation(
|
| state.op(), left, right,
|
| handle(Type::String(), isolate()), right_type,
|
| - result_type));
|
| + result_type, state.fixed_right_arg()));
|
| }
|
| if_leftisstring.Else();
|
| {
|
| Push(BuildBinaryOperation(
|
| state.op(), left, right,
|
| - left_type, right_type, result_type));
|
| + left_type, right_type, result_type,
|
| + state.fixed_right_arg()));
|
| }
|
| if_leftisstring.End();
|
| result = Pop();
|
| @@ -940,13 +941,14 @@ HValue* CodeStubGraphBuilder<BinaryOpICStub>::BuildCodeInitializedStub() {
|
| Push(BuildBinaryOperation(
|
| state.op(), left, right,
|
| left_type, handle(Type::String(), isolate()),
|
| - result_type));
|
| + result_type, state.fixed_right_arg()));
|
| }
|
| if_rightisstring.Else();
|
| {
|
| Push(BuildBinaryOperation(
|
| state.op(), left, right,
|
| - left_type, right_type, result_type));
|
| + left_type, right_type, result_type,
|
| + state.fixed_right_arg()));
|
| }
|
| if_rightisstring.End();
|
| result = Pop();
|
| @@ -954,7 +956,8 @@ HValue* CodeStubGraphBuilder<BinaryOpICStub>::BuildCodeInitializedStub() {
|
| } else {
|
| result = BuildBinaryOperation(
|
| state.op(), left, right,
|
| - left_type, right_type, result_type);
|
| + left_type, right_type, result_type,
|
| + state.fixed_right_arg());
|
| }
|
|
|
| // If we encounter a generic argument, the number conversion is
|
|
|