summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden')
-rw-r--r--deps/v8/test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden150
1 files changed, 44 insertions, 106 deletions
diff --git a/deps/v8/test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden b/deps/v8/test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden
index ae8d050914..31272f1c29 100644
--- a/deps/v8/test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden
+++ b/deps/v8/test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden
@@ -35,17 +35,17 @@ bytecodes: [
/* 42 S> */ B(LdaSmi), I8(1),
B(Star), R(0),
/* 45 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37),
- B(Star), R(1),
- B(LdaZero),
B(Star), R(2),
+ B(LdaZero),
+ B(Star), R(1),
B(Ldar), R(0),
- /* 54 E> */ B(StaKeyedProperty), R(1), R(2), U8(1),
+ /* 54 E> */ B(StaInArrayLiteral), R(2), R(1), U8(1),
B(LdaSmi), I8(1),
- B(Star), R(2),
+ B(Star), R(1),
B(Ldar), R(0),
/* 59 E> */ B(AddSmi), I8(1), U8(3),
- B(StaKeyedProperty), R(1), R(2), U8(1),
- B(Ldar), R(1),
+ B(StaInArrayLiteral), R(2), R(1), U8(1),
+ B(Ldar), R(2),
/* 65 S> */ B(Return),
]
constant pool: [
@@ -84,29 +84,29 @@ bytecodes: [
/* 42 S> */ B(LdaSmi), I8(1),
B(Star), R(0),
/* 45 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(4),
- B(Star), R(1),
- B(LdaZero),
B(Star), R(2),
- B(CreateArrayLiteral), U8(1), U8(3), U8(37),
- B(Star), R(3),
B(LdaZero),
+ B(Star), R(1),
+ B(CreateArrayLiteral), U8(1), U8(1), U8(37),
B(Star), R(4),
+ B(LdaZero),
+ B(Star), R(3),
B(Ldar), R(0),
- /* 56 E> */ B(StaKeyedProperty), R(3), R(4), U8(4),
- B(Ldar), R(3),
- B(StaKeyedProperty), R(1), R(2), U8(1),
+ /* 56 E> */ B(StaInArrayLiteral), R(4), R(3), U8(2),
+ B(Ldar), R(4),
+ B(StaInArrayLiteral), R(2), R(1), U8(4),
B(LdaSmi), I8(1),
- B(Star), R(2),
+ B(Star), R(1),
B(CreateArrayLiteral), U8(2), U8(6), U8(37),
- B(Star), R(3),
- B(LdaZero),
B(Star), R(4),
+ B(LdaZero),
+ B(Star), R(3),
B(Ldar), R(0),
- /* 68 E> */ B(AddSmi), I8(2), U8(9),
- B(StaKeyedProperty), R(3), R(4), U8(7),
- B(Ldar), R(3),
- B(StaKeyedProperty), R(1), R(2), U8(1),
- B(Ldar), R(1),
+ /* 68 E> */ B(AddSmi), I8(2), U8(7),
+ B(StaInArrayLiteral), R(4), R(3), U8(8),
+ B(Ldar), R(4),
+ B(StaInArrayLiteral), R(2), R(1), U8(4),
+ B(Ldar), R(2),
/* 76 S> */ B(Return),
]
constant pool: [
@@ -121,50 +121,18 @@ handlers: [
snippet: "
var a = [ 1, 2 ]; return [ ...a ];
"
-frame size: 8
+frame size: 1
parameter count: 1
-bytecode array length: 86
+bytecode array length: 9
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37),
B(Star), R(0),
- /* 52 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(37),
- B(Star), R(1),
- B(LdaConstant), U8(2),
- /* 64 S> */ B(Star), R(2),
- B(LdaNamedProperty), R(0), U8(3), U8(7),
- B(Star), R(7),
- B(CallProperty0), R(7), R(0), U8(9),
- B(Mov), R(0), R(6),
- B(JumpIfJSReceiver), U8(7),
- B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
- B(Star), R(5),
- B(LdaNamedProperty), R(5), U8(4), U8(11),
- B(Star), R(4),
- B(CallProperty0), R(4), R(5), U8(13),
- B(Star), R(3),
- B(JumpIfJSReceiver), U8(7),
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(3), U8(1),
- B(LdaNamedProperty), R(3), U8(5), U8(15),
- B(JumpIfToBooleanTrue), U8(21),
- B(LdaNamedProperty), R(3), U8(6), U8(17),
- B(Star), R(3),
- B(StaInArrayLiteral), R(1), R(2), U8(2),
- B(Ldar), R(2),
- B(Inc), U8(4),
- B(Star), R(2),
- B(JumpLoop), U8(35), I8(0),
- B(Ldar), R(1),
+ /* 52 S> */ B(CreateArrayFromIterable),
/* 68 S> */ B(Return),
]
constant pool: [
ARRAY_BOILERPLATE_DESCRIPTION_TYPE,
- ARRAY_BOILERPLATE_DESCRIPTION_TYPE,
- Smi [0],
- SYMBOL_TYPE,
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
]
handlers: [
]
@@ -181,32 +149,32 @@ bytecodes: [
/* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37),
B(Star), R(0),
/* 52 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(37),
- B(Star), R(1),
+ B(Star), R(2),
B(LdaConstant), U8(2),
- /* 67 S> */ B(Star), R(2),
- B(LdaNamedProperty), R(0), U8(3), U8(7),
+ /* 67 S> */ B(Star), R(1),
+ B(LdaNamedProperty), R(0), U8(3), U8(5),
B(Star), R(7),
- B(CallProperty0), R(7), R(0), U8(9),
+ B(CallProperty0), R(7), R(0), U8(7),
B(Mov), R(0), R(6),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(5),
- B(LdaNamedProperty), R(5), U8(4), U8(11),
+ B(LdaNamedProperty), R(5), U8(4), U8(9),
B(Star), R(4),
- B(CallProperty0), R(4), R(5), U8(13),
+ B(CallProperty0), R(4), R(5), U8(11),
B(Star), R(3),
B(JumpIfJSReceiver), U8(7),
B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(3), U8(1),
- B(LdaNamedProperty), R(3), U8(5), U8(15),
+ B(LdaNamedProperty), R(3), U8(5), U8(13),
B(JumpIfToBooleanTrue), U8(21),
- B(LdaNamedProperty), R(3), U8(6), U8(17),
+ B(LdaNamedProperty), R(3), U8(6), U8(15),
B(Star), R(3),
- B(StaInArrayLiteral), R(1), R(2), U8(2),
- B(Ldar), R(2),
- B(Inc), U8(4),
- B(Star), R(2),
- B(JumpLoop), U8(35), I8(0),
+ B(StaInArrayLiteral), R(2), R(1), U8(3),
B(Ldar), R(1),
+ B(Inc), U8(2),
+ B(Star), R(1),
+ B(JumpLoop), U8(35), I8(0),
+ B(Ldar), R(2),
/* 71 S> */ B(Return),
]
constant pool: [
@@ -225,55 +193,25 @@ handlers: [
snippet: "
var a = [ 1, 2 ]; return [ ...a, 3 ];
"
-frame size: 8
+frame size: 3
parameter count: 1
-bytecode array length: 98
+bytecode array length: 25
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(37),
B(Star), R(0),
- /* 52 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(37),
- B(Star), R(1),
- B(LdaConstant), U8(2),
- /* 64 S> */ B(Star), R(2),
- B(LdaNamedProperty), R(0), U8(3), U8(7),
- B(Star), R(7),
- B(CallProperty0), R(7), R(0), U8(9),
- B(Mov), R(0), R(6),
- B(JumpIfJSReceiver), U8(7),
- B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
- B(Star), R(5),
- B(LdaNamedProperty), R(5), U8(4), U8(11),
- B(Star), R(4),
- B(CallProperty0), R(4), R(5), U8(13),
- B(Star), R(3),
- B(JumpIfJSReceiver), U8(7),
- B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R(3), U8(1),
- B(LdaNamedProperty), R(3), U8(5), U8(15),
- B(JumpIfToBooleanTrue), U8(21),
- B(LdaNamedProperty), R(3), U8(6), U8(17),
- B(Star), R(3),
- B(StaInArrayLiteral), R(1), R(2), U8(2),
- B(Ldar), R(2),
- B(Inc), U8(4),
+ /* 52 S> */ B(CreateArrayFromIterable),
B(Star), R(2),
- B(JumpLoop), U8(35), I8(0),
+ B(LdaNamedProperty), R(2), U8(1), U8(1),
+ B(Star), R(1),
B(LdaSmi), I8(3),
- B(StaInArrayLiteral), R(1), R(2), U8(2),
+ B(StaInArrayLiteral), R(2), R(1), U8(3),
B(Ldar), R(2),
- B(Inc), U8(4),
- B(Star), R(2),
- B(Ldar), R(1),
/* 71 S> */ B(Return),
]
constant pool: [
ARRAY_BOILERPLATE_DESCRIPTION_TYPE,
- ARRAY_BOILERPLATE_DESCRIPTION_TYPE,
- Smi [0],
- SYMBOL_TYPE,
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
- ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["length"],
]
handlers: [
]