2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0, y = 1;
|
|
|
|
return (x = 2, y = 3, x = 4, y = 5);
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 25
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 49 S> */ B(LdaSmi), I8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 52 S> */ B(LdaSmi), I8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(4),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(5),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 88 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 55;
|
|
|
|
var y = (x = 100);
|
|
|
|
return y;
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
2017-07-17 19:02:35 +00:00
|
|
|
bytecode array length: 12
|
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(55),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
[inspector] moved var initialization break location before init expression (reland)
This CL improves break locations for expressions like 'var a = <expr>'. Without CL we use <expr> position as break location for initialization statement, with this CL we use position of first character after '=' as position.
Benefits (see test for details):
- only one break in expressions which includes mix of property lookup and calls, e.g. var p = Promise.resolve().then(x => x * 2),
- removed redundant break location for expressions like: let { x, y } = { x: 1, y: 2}.
TBR=dgozman@chromium.org,rmcilroy@chromium.org,machenbach@chromium.org,marja@chromium.org,kozyatinskiy@chromium.org,devtools-reviews@chromium.org,v8-reviews@googlegroups.com
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: v8:5909
Change-Id: Ie84fa79afeed09e28cf8478ba610a0cfbfdfc294
Reviewed-on: https://chromium-review.googlesource.com/518116
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45598}
2017-05-30 12:25:55 +00:00
|
|
|
/* 54 S> */ B(LdaSmi), I8(100),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 74 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 55;
|
|
|
|
x = x + (x = 100) + (x = 101);
|
|
|
|
return x;
|
|
|
|
"
|
2016-09-30 09:02:59 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-07-17 19:02:35 +00:00
|
|
|
bytecode array length: 27
|
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(55),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 46 S> */ B(LdaSmi), I8(100),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 52 E> */ B(Add), R(1), U8(0),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(101),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 64 E> */ B(Add), R(1), U8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 86 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 55;
|
|
|
|
x = (x = 56) - x + (x = 57);
|
|
|
|
x++;
|
|
|
|
return x;
|
|
|
|
"
|
2016-09-30 09:02:59 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-07-17 19:02:35 +00:00
|
|
|
bytecode array length: 28
|
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(55),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 46 S> */ B(LdaSmi), I8(56),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 59 E> */ B(Sub), R(0), U8(1),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(57),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 63 E> */ B(Add), R(1), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 75 S> */ B(Inc), U8(2),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 89 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 55;
|
|
|
|
var y = x + (x = 1) + (x = 2) + (x = 3);
|
|
|
|
return y;
|
|
|
|
"
|
2016-09-30 09:02:59 +00:00
|
|
|
frame size: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-07-17 19:02:35 +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),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(55),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
[inspector] moved var initialization break location before init expression (reland)
This CL improves break locations for expressions like 'var a = <expr>'. Without CL we use <expr> position as break location for initialization statement, with this CL we use position of first character after '=' as position.
Benefits (see test for details):
- only one break in expressions which includes mix of property lookup and calls, e.g. var p = Promise.resolve().then(x => x * 2),
- removed redundant break location for expressions like: let { x, y } = { x: 1, y: 2}.
TBR=dgozman@chromium.org,rmcilroy@chromium.org,machenbach@chromium.org,marja@chromium.org,kozyatinskiy@chromium.org,devtools-reviews@chromium.org,v8-reviews@googlegroups.com
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: v8:5909
Change-Id: Ie84fa79afeed09e28cf8478ba610a0cfbfdfc294
Reviewed-on: https://chromium-review.googlesource.com/518116
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45598}
2017-05-30 12:25:55 +00:00
|
|
|
/* 54 S> */ B(LdaSmi), I8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 56 E> */ B(Add), R(2), U8(0),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 66 E> */ B(Add), R(2), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 76 E> */ B(Add), R(2), U8(2),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 96 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 55;
|
|
|
|
var x = x + (x = 1) + (x = 2) + (x = 3);
|
|
|
|
return x;
|
|
|
|
"
|
2016-09-30 09:02:59 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-07-17 19:02:35 +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),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(55),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
[inspector] moved var initialization break location before init expression (reland)
This CL improves break locations for expressions like 'var a = <expr>'. Without CL we use <expr> position as break location for initialization statement, with this CL we use position of first character after '=' as position.
Benefits (see test for details):
- only one break in expressions which includes mix of property lookup and calls, e.g. var p = Promise.resolve().then(x => x * 2),
- removed redundant break location for expressions like: let { x, y } = { x: 1, y: 2}.
TBR=dgozman@chromium.org,rmcilroy@chromium.org,machenbach@chromium.org,marja@chromium.org,kozyatinskiy@chromium.org,devtools-reviews@chromium.org,v8-reviews@googlegroups.com
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: v8:5909
Change-Id: Ie84fa79afeed09e28cf8478ba610a0cfbfdfc294
Reviewed-on: https://chromium-review.googlesource.com/518116
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45598}
2017-05-30 12:25:55 +00:00
|
|
|
/* 54 S> */ B(LdaSmi), I8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 56 E> */ B(Add), R(1), U8(0),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 66 E> */ B(Add), R(1), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 76 E> */ B(Add), R(1), U8(2),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 96 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 10, y = 20;
|
|
|
|
return x + (x = 1) + (x + 1) * (y = 2) + (y = 3) + (x = 4) + (y = 5) + y;
|
|
|
|
"
|
2016-09-30 09:02:59 +00:00
|
|
|
frame size: 4
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-04-10 09:30:51 +00:00
|
|
|
bytecode array length: 73
|
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(10),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 50 S> */ B(LdaSmi), I8(20),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 54 S> */ B(LdaSmi), I8(1),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(0), R(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 63 E> */ B(Add), R(2), U8(0),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(2),
|
2017-04-10 09:30:51 +00:00
|
|
|
B(Ldar), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 78 E> */ B(AddSmi), I8(1), U8(2),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(3),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 83 E> */ B(Mul), R(3), U8(1),
|
|
|
|
/* 73 E> */ B(Add), R(2), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 93 E> */ B(Add), R(2), U8(4),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(4),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 103 E> */ B(Add), R(2), U8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(5),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 113 E> */ B(Add), R(2), U8(6),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Ldar), R(1),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 123 E> */ B(Add), R(2), U8(7),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 127 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 17;
|
|
|
|
return 1 + x + (x++) + (++x);
|
|
|
|
"
|
2016-09-30 09:02:59 +00:00
|
|
|
frame size: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-09-11 16:57:39 +00:00
|
|
|
bytecode array length: 43
|
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(17),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 46 S> */ B(LdaSmi), I8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Ldar), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 55 E> */ B(Add), R(1), U8(0),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
B(ToNumeric), U8(1),
|
2017-09-11 16:57:39 +00:00
|
|
|
B(Star), R(2),
|
2017-10-25 10:47:24 +00:00
|
|
|
B(Inc), U8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Ldar), R(2),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 59 E> */ B(Add), R(1), U8(2),
|
2016-09-30 09:02:59 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
B(Inc), U8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-10-25 10:47:24 +00:00
|
|
|
/* 67 E> */ B(Add), R(1), U8(4),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 75 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|