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

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

Issue 1882073002: [Interpreter] Make dispatch table point to code entry instead of code objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix visiting dispatch table. Created 4 years, 8 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
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/interpreter/interpreter-assembler-unittest.cc
diff --git a/test/unittests/interpreter/interpreter-assembler-unittest.cc b/test/unittests/interpreter/interpreter-assembler-unittest.cc
index 0106c577bd90646341070b5a61682a969ba20dc3..3422b23ecbd3ae37f737f0927aa0ad5f672af20a 100644
--- a/test/unittests/interpreter/interpreter-assembler-unittest.cc
+++ b/test/unittests/interpreter/interpreter-assembler-unittest.cc
@@ -464,10 +464,13 @@ TARGET_TEST_F(InterpreterAssemblerTest, InterpreterReturn) {
Handle<HeapObject> exit_trampoline =
isolate()->builtins()->InterpreterExitTrampoline();
+ Matcher<Node*> exit_trampoline_entry_matcher =
+ IsIntPtrAdd(IsHeapConstant(exit_trampoline),
+ IsIntPtrConstant(Code::kHeaderSize - kHeapObjectTag));
EXPECT_THAT(
tail_call_node,
IsTailCall(
- _, IsHeapConstant(exit_trampoline),
+ _, exit_trampoline_entry_matcher,
IsParameter(InterpreterDispatchDescriptor::kAccumulatorParameter),
IsParameter(InterpreterDispatchDescriptor::kRegisterFileParameter),
IsParameter(
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698