52600c6b1c
Prints source position information alongside bytecode. BUG=v8:4280 LOG=N Review-Url: https://codereview.chromium.org/1963663002 Cr-Commit-Position: refs/heads/master@{#36171}
79 lines
1.4 KiB
Plaintext
79 lines
1.4 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
pool type: string
|
|
execute: yes
|
|
wrap: yes
|
|
do expressions: yes
|
|
|
|
---
|
|
snippet: "
|
|
var a = do { }; return a;
|
|
"
|
|
frame size: 2
|
|
parameter count: 1
|
|
bytecode array length: 6
|
|
bytecodes: [
|
|
/* 30 E> */ B(StackCheck),
|
|
/* 42 S> */ B(Ldar), R(0),
|
|
/* 42 E> */ B(Star), R(1),
|
|
/* 60 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
var a = do { var x = 100; }; return a;
|
|
"
|
|
frame size: 3
|
|
parameter count: 1
|
|
bytecode array length: 11
|
|
bytecodes: [
|
|
/* 30 E> */ B(StackCheck),
|
|
/* 55 S> */ B(LdaSmi), U8(100),
|
|
/* 55 E> */ B(Star), R(1),
|
|
/* 42 S> */ B(LdaUndefined),
|
|
B(Star), R(0),
|
|
/* 42 E> */ B(Star), R(2),
|
|
/* 73 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
while(true) { var a = 10; a = do { ++a; break; }; a = 20; }
|
|
"
|
|
frame size: 2
|
|
parameter count: 1
|
|
bytecode array length: 25
|
|
bytecodes: [
|
|
/* 30 E> */ B(StackCheck),
|
|
/* 34 E> */ B(StackCheck),
|
|
/* 56 S> */ B(LdaSmi), U8(10),
|
|
/* 56 E> */ B(Star), R(1),
|
|
/* 69 S> */ B(Inc),
|
|
/* 71 E> */ B(Star), R(1),
|
|
B(Star), R(0),
|
|
/* 74 S> */ B(Jump), U8(12),
|
|
/* 64 E> */ B(Ldar), R(0),
|
|
/* 62 E> */ B(Star), R(1),
|
|
/* 84 S> */ B(LdaSmi), U8(20),
|
|
/* 86 E> */ B(Star), R(1),
|
|
B(Jump), U8(-20),
|
|
B(LdaUndefined),
|
|
/* 94 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|