9e3e2ee2dd
Assign feedback slots in the type feedback vector for binary operations. Update bytecode-generator to use these slots and add them as an operand to binary operations. BUG=v8:4280 LOG=N Review-Url: https://codereview.chromium.org/2209633002 Cr-Commit-Position: refs/heads/master@{#38408}
103 lines
1.7 KiB
Plaintext
103 lines
1.7 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
pool type: string
|
|
execute: yes
|
|
wrap: no
|
|
test function name: f
|
|
|
|
---
|
|
snippet: "
|
|
var global = 1;
|
|
function f() { return ++global; }
|
|
f();
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 9
|
|
bytecodes: [
|
|
/* 26 E> */ B(StackCheck),
|
|
/* 31 S> */ B(LdaGlobal), U8(1),
|
|
B(Inc), U8(5),
|
|
/* 40 E> */ B(StaGlobalSloppy), U8(0), U8(3),
|
|
/* 48 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
"global",
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
var global = 1;
|
|
function f() { return global--; }
|
|
f();
|
|
"
|
|
frame size: 1
|
|
parameter count: 1
|
|
bytecode array length: 13
|
|
bytecodes: [
|
|
/* 26 E> */ B(StackCheck),
|
|
/* 31 S> */ B(LdaGlobal), U8(1),
|
|
B(ToNumber), R(0),
|
|
B(Dec), U8(5),
|
|
/* 44 E> */ B(StaGlobalSloppy), U8(0), U8(3),
|
|
B(Ldar), R(0),
|
|
/* 48 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
"global",
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
unallocated = 1;
|
|
function f() { 'use strict'; return --unallocated; }
|
|
f();
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 9
|
|
bytecodes: [
|
|
/* 27 E> */ B(StackCheck),
|
|
/* 46 S> */ B(LdaGlobal), U8(1),
|
|
B(Dec), U8(5),
|
|
/* 55 E> */ B(StaGlobalStrict), U8(0), U8(3),
|
|
/* 68 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
"unallocated",
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
unallocated = 1;
|
|
function f() { return unallocated++; }
|
|
f();
|
|
"
|
|
frame size: 1
|
|
parameter count: 1
|
|
bytecode array length: 13
|
|
bytecodes: [
|
|
/* 27 E> */ B(StackCheck),
|
|
/* 32 S> */ B(LdaGlobal), U8(1),
|
|
B(ToNumber), R(0),
|
|
B(Inc), U8(5),
|
|
/* 50 E> */ B(StaGlobalSloppy), U8(0), U8(3),
|
|
B(Ldar), R(0),
|
|
/* 54 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
"unallocated",
|
|
]
|
|
handlers: [
|
|
]
|
|
|