Index: test/cctest/compiler/test-code-stub-assembler.cc |
diff --git a/test/cctest/compiler/test-code-stub-assembler.cc b/test/cctest/compiler/test-code-stub-assembler.cc |
index 905ab98acd0fc891b3e8bc3ba6b8f3a3ac8642fe..e15a1cffd3385291f800db83475b9aefb56fbc2e 100644 |
--- a/test/cctest/compiler/test-code-stub-assembler.cc |
+++ b/test/cctest/compiler/test-code-stub-assembler.cc |
@@ -319,8 +319,8 @@ TEST(JSFunction) { |
const int kNumParams = 3; // Receiver, left, right. |
Isolate* isolate(CcTest::InitIsolateOnce()); |
CodeStubAssemblerTester m(isolate, kNumParams); |
- m.Return(m.SmiTag( |
- m.Int32Add(m.SmiToInt32(m.Parameter(1)), m.SmiToInt32(m.Parameter(2))))); |
+ m.Return(m.SmiTag(m.Int32Add(m.SmiToWord32(m.Parameter(1)), |
+ m.SmiToWord32(m.Parameter(2))))); |
Handle<Code> code = m.GenerateCode(); |
Handle<JSFunction> function = CreateFunctionFromCode(kNumParams, code); |
Handle<Object> args[] = {Handle<Smi>(Smi::FromInt(23), isolate), |