2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { };
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 9
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(35), R(0),
|
|
|
|
B(Ldar), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 46 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { name: 'string', val: 9.2 };
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 9
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
|
|
|
|
B(Ldar), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 71 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 1; return { name: 'string', val: a };
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 17
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaSmi), U8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1),
|
2016-09-14 10:20:08 +00:00
|
|
|
/* 75 E> */ B(StaNamedPropertySloppy), R(1), U8(1), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(1),
|
|
|
|
/* 80 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 1; return { val: a, val: a + 1 };
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-08-23 14:59:10 +00:00
|
|
|
bytecode array length: 21
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaSmi), U8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1),
|
2016-09-14 10:20:08 +00:00
|
|
|
/* 67 E> */ B(AddSmi), U8(1), R(0), U8(2),
|
|
|
|
B(StaNamedPropertySloppy), R(1), U8(1), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(1),
|
|
|
|
/* 76 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { func: function() { } };
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 16
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(1), U8(2),
|
2016-09-14 10:20:08 +00:00
|
|
|
B(StaNamedPropertySloppy), R(0), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(0),
|
|
|
|
/* 67 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { func(a) { return a; } };
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 16
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(1), U8(2),
|
2016-09-14 10:20:08 +00:00
|
|
|
B(StaNamedPropertySloppy), R(0), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(0),
|
|
|
|
/* 68 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["func"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { get a() { return 2; } };
|
|
|
|
"
|
|
|
|
frame size: 6
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 32
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(2),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
|
|
|
B(LdaNull),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 68 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { get a() { return this.x; }, set a(val) { this.x = val } };
|
|
|
|
"
|
|
|
|
frame size: 6
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 34
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(2),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(3), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 102 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { set b(val) { this.y = val } };
|
|
|
|
"
|
|
|
|
frame size: 6
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 32
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(LdaNull),
|
|
|
|
B(Star), R(3),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 74 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["b"],
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 1; return { 1: a };
|
|
|
|
"
|
|
|
|
frame size: 6
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 31
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaSmi), U8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaZero),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(5),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(1), R(2),
|
|
|
|
B(Mov), R(0), R(4),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 57 E> */ B(CallRuntime), U16(Runtime::kSetProperty), R(2), U8(4),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { __proto__: null };
|
|
|
|
"
|
|
|
|
frame size: 3
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 20
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(35), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaNull),
|
|
|
|
B(Star), R(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(1), U8(2),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 'test'; return { [a]: 1 };
|
|
|
|
"
|
|
|
|
frame size: 7
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 33
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaConstant), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1),
|
2016-07-25 12:51:39 +00:00
|
|
|
/* 60 E> */ B(ToName), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(6),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(1), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 69 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 'test'; return { val: a, [a]: 1 };
|
|
|
|
"
|
|
|
|
frame size: 7
|
|
|
|
parameter count: 1
|
2016-08-09 10:30:03 +00:00
|
|
|
bytecode array length: 37
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaConstant), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), R(1),
|
2016-09-14 10:20:08 +00:00
|
|
|
/* 64 E> */ B(StaNamedPropertySloppy), R(1), U8(2), U8(2),
|
2016-07-25 12:51:39 +00:00
|
|
|
/* 68 E> */ B(ToName), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(6),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(1), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 77 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 'test'; return { [a]: 1, __proto__: {} };
|
|
|
|
"
|
|
|
|
frame size: 7
|
|
|
|
parameter count: 1
|
2016-09-30 09:02:59 +00:00
|
|
|
bytecode array length: 46
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaConstant), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), R(1),
|
2016-07-25 12:51:39 +00:00
|
|
|
/* 60 E> */ B(ToName), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaSmi), U8(1),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(Mov), R(1), R(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5),
|
2016-08-09 10:30:03 +00:00
|
|
|
B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(4),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(4), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 84 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["test"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} };
|
|
|
|
"
|
|
|
|
frame size: 7
|
|
|
|
parameter count: 1
|
2016-09-30 09:02:59 +00:00
|
|
|
bytecode array length: 67
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaConstant), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-08-09 10:30:03 +00:00
|
|
|
/* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), R(1),
|
2016-07-25 12:51:39 +00:00
|
|
|
/* 60 E> */ B(ToName), R(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(2),
|
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(6),
|
|
|
|
B(Mov), R(1), R(2),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(3),
|
2016-08-11 15:11:31 +00:00
|
|
|
B(ToName), R(3),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(4), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R(2), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(3),
|
2016-08-11 15:11:31 +00:00
|
|
|
B(ToName), R(3),
|
2016-06-30 15:32:28 +00:00
|
|
|
B(CreateClosure), U8(5), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
|
|
|
B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R(2), U8(4),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 99 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["name"],
|
|
|
|
FIXED_ARRAY_TYPE,
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
|
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|