| Index: test/unittests/compiler/interpreter-assembler-unittest.cc
|
| diff --git a/test/unittests/compiler/interpreter-assembler-unittest.cc b/test/unittests/compiler/interpreter-assembler-unittest.cc
|
| index 48aa8f1ec4258b93b49a81e50f08f2215da3f76e..fe367600b2dcf07ebcb61d3e2b9f87534b20202a 100644
|
| --- a/test/unittests/compiler/interpreter-assembler-unittest.cc
|
| +++ b/test/unittests/compiler/interpreter-assembler-unittest.cc
|
| @@ -461,7 +461,7 @@ TARGET_TEST_F(InterpreterAssemblerTest, LoadObjectField) {
|
| }
|
|
|
|
|
| -TARGET_TEST_F(InterpreterAssemblerTest, CallRuntime) {
|
| +TARGET_TEST_F(InterpreterAssemblerTest, CallRuntime2) {
|
| TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
|
| InterpreterAssemblerForTest m(this, bytecode);
|
| Node* arg1 = m.Int32Constant(2);
|
| @@ -474,6 +474,22 @@ TARGET_TEST_F(InterpreterAssemblerTest, CallRuntime) {
|
| }
|
|
|
|
|
| +TARGET_TEST_F(InterpreterAssemblerTest, CallRuntime) {
|
| + TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
|
| + InterpreterAssemblerForTest m(this, bytecode);
|
| + Callable builtin = CodeFactory::InterpreterCEntry(isolate());
|
| + Node* function_id = m.Int32Constant(0);
|
| + Node* first_arg = m.Int32Constant(1);
|
| + Node* arg_count = m.Int32Constant(2);
|
| + Node* call_runtime = m.CallRuntime(function_id, first_arg, arg_count);
|
| + EXPECT_THAT(call_runtime,
|
| + m.IsCall(_, IsHeapConstant(builtin.code()), arg_count,
|
| + first_arg, function_id,
|
| + IsParameter(Linkage::kInterpreterContextParameter)));
|
| + }
|
| +}
|
| +
|
| +
|
| TARGET_TEST_F(InterpreterAssemblerTest, CallIC) {
|
| TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
|
| InterpreterAssemblerForTest m(this, bytecode);
|
| @@ -494,7 +510,7 @@ TARGET_TEST_F(InterpreterAssemblerTest, CallIC) {
|
| TARGET_TEST_F(InterpreterAssemblerTest, CallJS) {
|
| TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) {
|
| InterpreterAssemblerForTest m(this, bytecode);
|
| - Callable builtin = CodeFactory::PushArgsAndCall(isolate());
|
| + Callable builtin = CodeFactory::InterpreterPushArgsAndCall(isolate());
|
| Node* function = m.Int32Constant(0);
|
| Node* first_arg = m.Int32Constant(1);
|
| Node* arg_count = m.Int32Constant(2);
|
|
|