Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: test/unittests/compiler/interpreter-assembler-unittest.cc

Issue 1379793004: [Interpreter] Add support for new local function context creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_decl
Patch Set: Fix ia32 Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0fab029d565c462b82d2bd9a573a4616dbc20170..9f70522ae1a06a72f8d191f85bc8f7a35df55b87 100644
--- a/test/unittests/compiler/interpreter-assembler-unittest.cc
+++ b/test/unittests/compiler/interpreter-assembler-unittest.cc
@@ -564,10 +564,11 @@ TARGET_TEST_F(InterpreterAssemblerTest, CallJS) {
Node* first_arg = m.Int32Constant(1);
Node* arg_count = m.Int32Constant(2);
Node* call_js = m.CallJS(function, first_arg, arg_count);
- EXPECT_THAT(
- call_js,
- m.IsCall(_, IsHeapConstant(builtin.code()), arg_count, first_arg,
- function, IsParameter(Linkage::kInterpreterContextParameter)));
+ Matcher<Node*> context =
+ m.IsLoad(kMachAnyTagged, function,
+ IsIntPtrConstant(JSFunction::kContextOffset - kHeapObjectTag));
+ EXPECT_THAT(call_js, m.IsCall(_, IsHeapConstant(builtin.code()), arg_count,
+ first_arg, function, context));
}
}

Powered by Google App Engine
This is Rietveld 408576698