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

Unified Diff: test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden

Issue 2541113004: [Ignition/turbo] Add a NewWithSpread bytecode. (Closed)
Patch Set: Add todo Created 4 years 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/runtime/runtime-classes.cc ('k') | test/unittests/interpreter/bytecode-array-builder-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden b/test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden
index 6d95afcf75f183a0e57a9dddefe6db46e9ba2cde..15873e0ae0341ab80296e5f69fb6f0fe499fddf8 100644
--- a/test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden
+++ b/test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden
@@ -17,9 +17,9 @@ snippet: "
test = new B(1, 2, 3).constructor;
})();
"
-frame size: 9
+frame size: 7
parameter count: 1
-bytecode array length: 40
+bytecode array length: 32
bytecodes: [
B(CreateRestParameter),
B(Star), R(2),
@@ -29,13 +29,10 @@ bytecodes: [
/* 93 E> */ B(StackCheck),
/* 93 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::kSpreadIterablePrepareVarargs), R(2), U8(1),
- B(Star), R(7),
- B(LdaUndefined),
- B(Star), R(5),
- B(Mov), R(3), R(6),
- B(Mov), R(0), R(8),
- /* 93 E> */ B(CallJSRuntime), U8(150), R(5), U8(4),
+ B(Mov), R(3), R(4),
+ B(Mov), R(0), R(5),
+ B(Mov), R(2), R(6),
+ /* 93 E> */ B(NewWithSpread), R(4), U8(3),
/* 93 S> */ B(Return),
]
constant pool: [
@@ -56,9 +53,9 @@ snippet: "
test = new B(1, 2, 3).constructor;
})();
"
-frame size: 10
+frame size: 8
parameter count: 1
-bytecode array length: 80
+bytecode array length: 69
bytecodes: [
B(CreateRestParameter),
B(Star), R(2),
@@ -69,15 +66,11 @@ bytecodes: [
/* 140 S> */ B(CallRuntime), U16(Runtime::k_GetSuperConstructor), R(1), U8(1),
B(Star), R(3),
B(LdaSmi), U8(1),
- B(Star), R(4),
- B(Mov), R(2), R(5),
- /* 152 E> */ B(CallRuntime), U16(Runtime::kSpreadIterablePrepareVarargs), R(4), U8(2),
- B(Star), R(8),
- B(LdaUndefined),
B(Star), R(6),
- B(Mov), R(3), R(7),
- B(Mov), R(0), R(9),
- /* 140 E> */ B(CallJSRuntime), U8(150), R(6), U8(4),
+ B(Mov), R(3), R(4),
+ B(Mov), R(0), R(5),
+ B(Mov), R(2), R(7),
+ /* 152 E> */ B(NewWithSpread), R(4), U8(4),
B(Star), R(3),
B(Ldar), R(this),
B(JumpIfNotHole), U8(4),
« no previous file with comments | « src/runtime/runtime-classes.cc ('k') | test/unittests/interpreter/bytecode-array-builder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698