2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { };
|
|
|
|
"
|
2017-08-21 09:04:41 +00:00
|
|
|
frame size: 0
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-08-28 12:48:05 +00:00
|
|
|
bytecode array length: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-08-28 12:48:05 +00:00
|
|
|
/* 34 S> */ B(CreateEmptyObjectLiteral),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 45 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { name: 'string', val: 9.2 };
|
|
|
|
"
|
2018-11-08 08:55:43 +00:00
|
|
|
frame size: 0
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 6
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 70 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_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
|
2018-11-08 08:55:43 +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),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 75 E> */ B(StaNamedOwnProperty), R(1), U8(1), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 79 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
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
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 23
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(Ldar), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 69 E> */ B(AddSmi), I8(1), U8(1),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(StaNamedOwnProperty), R(1), U8(1), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 75 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
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
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 18
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
|
|
B(Star), R(0),
|
[ignition] Set correct expression position for ObjectLiteral keys/values
Given the following input,
const config = {
min: Math.min(1, 2),
func: myfunc(),
}
Previously, the error was,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:3: ReferenceError: myfunc is not defined
min: Math.min(1, 2),
^
ReferenceError: myfunc is not defined
at _test.js:3:13
Now, the error is,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:4: ReferenceError: myfunc is not defined
func: myfunc(),
^
ReferenceError: myfunc is not defined
at _test.js:4:9
Bug: v8:7507
Change-Id: Ia65b445fdbc1369ecce80f4fc2040e500c807d40
Reviewed-on: https://chromium-review.googlesource.com/964182
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51964}
2018-03-15 14:24:49 +00:00
|
|
|
/* 49 E> */ B(CreateClosure), U8(1), U8(1), U8(2),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(StaNamedOwnProperty), R(0), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 66 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
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
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 18
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
|
|
B(Star), R(0),
|
[ignition] Set correct expression position for ObjectLiteral keys/values
Given the following input,
const config = {
min: Math.min(1, 2),
func: myfunc(),
}
Previously, the error was,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:3: ReferenceError: myfunc is not defined
min: Math.min(1, 2),
^
ReferenceError: myfunc is not defined
at _test.js:3:13
Now, the error is,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:4: ReferenceError: myfunc is not defined
func: myfunc(),
^
ReferenceError: myfunc is not defined
at _test.js:4:9
Bug: v8:7507
Change-Id: Ia65b445fdbc1369ecce80f4fc2040e500c807d40
Reviewed-on: https://chromium-review.googlesource.com/964182
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51964}
2018-03-15 14:24:49 +00:00
|
|
|
/* 43 E> */ B(CreateClosure), U8(1), U8(1), U8(2),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(StaNamedOwnProperty), R(0), U8(2), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 67 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
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
|
2018-11-08 08:55:43 +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),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(2),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(CreateClosure), U8(2), U8(1), 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),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 67 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
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
|
2018-11-08 08:55:43 +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),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(2),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(CreateClosure), U8(2), U8(1), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(CreateClosure), U8(3), 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),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 101 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
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
|
2018-11-08 08:55:43 +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),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(1),
|
|
|
|
B(Star), R(2),
|
|
|
|
B(LdaNull),
|
|
|
|
B(Star), R(3),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(CreateClosure), U8(2), U8(1), 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),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 73 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
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
|
2018-11-08 08:55:43 +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),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
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),
|
2018-09-10 10:49:08 +00:00
|
|
|
/* 57 E> */ B(CallRuntime), U16(Runtime::kSetKeyedProperty), R(2), U8(4),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(2),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 61 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
return { __proto__: null };
|
|
|
|
"
|
2018-11-08 08:55:43 +00:00
|
|
|
frame size: 0
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 6
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(57),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 61 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 'test'; return { [a]: 1 };
|
|
|
|
"
|
2017-05-02 19:03:03 +00:00
|
|
|
frame size: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 25
|
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),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(41),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(Ldar), R(0),
|
2016-11-18 12:13:30 +00:00
|
|
|
/* 60 E> */ B(ToName), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
[ignition] Set correct expression position for ObjectLiteral keys/values
Given the following input,
const config = {
min: Math.min(1, 2),
func: myfunc(),
}
Previously, the error was,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:3: ReferenceError: myfunc is not defined
min: Math.min(1, 2),
^
ReferenceError: myfunc is not defined
at _test.js:3:13
Now, the error is,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:4: ReferenceError: myfunc is not defined
func: myfunc(),
^
ReferenceError: myfunc is not defined
at _test.js:4:9
Bug: v8:7507
Change-Id: Ia65b445fdbc1369ecce80f4fc2040e500c807d40
Reviewed-on: https://chromium-review.googlesource.com/964182
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51964}
2018-03-15 14:24:49 +00:00
|
|
|
/* 64 E> */ B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(1),
|
2016-11-18 12:13:30 +00:00
|
|
|
B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 68 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"],
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 'test'; return { val: a, [a]: 1 };
|
|
|
|
"
|
2017-05-02 19:03:03 +00:00
|
|
|
frame size: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-11-08 08:55:43 +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(LdaConstant), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(41),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 64 E> */ B(StaNamedOwnProperty), R(1), U8(2), U8(1),
|
2017-11-06 16:09:25 +00:00
|
|
|
B(Ldar), R(0),
|
2016-11-18 12:13:30 +00:00
|
|
|
/* 68 E> */ B(ToName), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
[ignition] Set correct expression position for ObjectLiteral keys/values
Given the following input,
const config = {
min: Math.min(1, 2),
func: myfunc(),
}
Previously, the error was,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:3: ReferenceError: myfunc is not defined
min: Math.min(1, 2),
^
ReferenceError: myfunc is not defined
at _test.js:3:13
Now, the error is,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:4: ReferenceError: myfunc is not defined
func: myfunc(),
^
ReferenceError: myfunc is not defined
at _test.js:4:9
Bug: v8:7507
Change-Id: Ia65b445fdbc1369ecce80f4fc2040e500c807d40
Reviewed-on: https://chromium-review.googlesource.com/964182
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51964}
2018-03-15 14:24:49 +00:00
|
|
|
/* 72 E> */ B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(3),
|
2016-11-18 12:13:30 +00:00
|
|
|
B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 76 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"],
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["val"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 'test'; return { [a]: 1, __proto__: {} };
|
|
|
|
"
|
2017-08-21 09:04:41 +00:00
|
|
|
frame size: 4
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 36
|
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),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(41),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(Ldar), R(0),
|
2016-11-18 12:13:30 +00:00
|
|
|
/* 60 E> */ B(ToName), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(1),
|
[ignition] Set correct expression position for ObjectLiteral keys/values
Given the following input,
const config = {
min: Math.min(1, 2),
func: myfunc(),
}
Previously, the error was,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:3: ReferenceError: myfunc is not defined
min: Math.min(1, 2),
^
ReferenceError: myfunc is not defined
at _test.js:3:13
Now, the error is,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:4: ReferenceError: myfunc is not defined
func: myfunc(),
^
ReferenceError: myfunc is not defined
at _test.js:4:9
Bug: v8:7507
Change-Id: Ia65b445fdbc1369ecce80f4fc2040e500c807d40
Reviewed-on: https://chromium-review.googlesource.com/964182
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51964}
2018-03-15 14:24:49 +00:00
|
|
|
/* 64 E> */ B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(1),
|
|
|
|
/* 78 E> */ B(CreateEmptyObjectLiteral),
|
2017-08-21 09:04:41 +00:00
|
|
|
B(Star), R(3),
|
2016-11-18 12:13:30 +00:00
|
|
|
B(Mov), R(1), R(2),
|
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),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 83 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"],
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} };
|
|
|
|
"
|
2016-11-18 12:13:30 +00:00
|
|
|
frame size: 6
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-11-08 08:55:43 +00:00
|
|
|
bytecode array length: 64
|
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),
|
2018-11-08 08:55:43 +00:00
|
|
|
/* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(41),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(Ldar), R(0),
|
2016-11-18 12:13:30 +00:00
|
|
|
/* 60 E> */ B(ToName), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(2),
|
[ignition] Set correct expression position for ObjectLiteral keys/values
Given the following input,
const config = {
min: Math.min(1, 2),
func: myfunc(),
}
Previously, the error was,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:3: ReferenceError: myfunc is not defined
min: Math.min(1, 2),
^
ReferenceError: myfunc is not defined
at _test.js:3:13
Now, the error is,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:4: ReferenceError: myfunc is not defined
func: myfunc(),
^
ReferenceError: myfunc is not defined
at _test.js:4:9
Bug: v8:7507
Change-Id: Ia65b445fdbc1369ecce80f4fc2040e500c807d40
Reviewed-on: https://chromium-review.googlesource.com/964182
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51964}
2018-03-15 14:24:49 +00:00
|
|
|
/* 64 E> */ B(StaDataPropertyInLiteral), R(1), R(2), U8(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaConstant), U8(3),
|
2017-04-05 15:45:04 +00:00
|
|
|
B(Star), R(3),
|
[ignition] Set correct expression position for ObjectLiteral keys/values
Given the following input,
const config = {
min: Math.min(1, 2),
func: myfunc(),
}
Previously, the error was,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:3: ReferenceError: myfunc is not defined
min: Math.min(1, 2),
^
ReferenceError: myfunc is not defined
at _test.js:3:13
Now, the error is,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:4: ReferenceError: myfunc is not defined
func: myfunc(),
^
ReferenceError: myfunc is not defined
at _test.js:4:9
Bug: v8:7507
Change-Id: Ia65b445fdbc1369ecce80f4fc2040e500c807d40
Reviewed-on: https://chromium-review.googlesource.com/964182
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51964}
2018-03-15 14:24:49 +00:00
|
|
|
/* 71 E> */ B(CreateClosure), U8(4), U8(3), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
B(Star), R(5),
|
2016-11-18 12:13:30 +00:00
|
|
|
B(Mov), R(1), R(2),
|
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),
|
2017-04-05 15:45:04 +00:00
|
|
|
B(Star), R(3),
|
[ignition] Set correct expression position for ObjectLiteral keys/values
Given the following input,
const config = {
min: Math.min(1, 2),
func: myfunc(),
}
Previously, the error was,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:3: ReferenceError: myfunc is not defined
min: Math.min(1, 2),
^
ReferenceError: myfunc is not defined
at _test.js:3:13
Now, the error is,
➜ ./out.gn/x64.release/d8 _test.js
_test.js:4: ReferenceError: myfunc is not defined
func: myfunc(),
^
ReferenceError: myfunc is not defined
at _test.js:4:9
Bug: v8:7507
Change-Id: Ia65b445fdbc1369ecce80f4fc2040e500c807d40
Reviewed-on: https://chromium-review.googlesource.com/964182
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51964}
2018-03-15 14:24:49 +00:00
|
|
|
/* 84 E> */ B(CreateClosure), U8(5), U8(4), 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),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 98 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"],
|
2018-07-05 18:34:09 +00:00
|
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
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: [
|
|
|
|
]
|
|
|
|
|