dd7ce93ce0
Make Ignition collect BinaryOperationFeedback on ToNumber, using the shared type feedback slot with the following Inc/Dec bytecode, and use this feedback in TurboFan to turn the ToNumber(x) operation into a SpeculativeNumberMultiply(x,1) with the feedback hint. R=jarin@chromium.org, mstarzinger@chromium.org, rmcilroy@chromium.org BUG=v8:6214,v8:5267 Review-Url: https://codereview.chromium.org/2804813003 Cr-Commit-Position: refs/heads/master@{#44440}
103 lines
2.0 KiB
Plaintext
103 lines
2.0 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
wrap: no
|
|
test function name: f
|
|
|
|
---
|
|
snippet: "
|
|
var global = 1;
|
|
function f() { return ++global; }
|
|
f();
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 10
|
|
bytecodes: [
|
|
/* 26 E> */ B(StackCheck),
|
|
/* 31 S> */ B(LdaGlobal), U8(0), U8(2),
|
|
B(Inc), U8(6),
|
|
/* 40 E> */ B(StaGlobalSloppy), U8(0), U8(4),
|
|
/* 48 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
var global = 1;
|
|
function f() { return global--; }
|
|
f();
|
|
"
|
|
frame size: 1
|
|
parameter count: 1
|
|
bytecode array length: 17
|
|
bytecodes: [
|
|
/* 26 E> */ B(StackCheck),
|
|
/* 31 S> */ B(LdaGlobal), U8(0), U8(2),
|
|
B(ToNumber), R(0), U8(6),
|
|
B(Ldar), R(0),
|
|
B(Dec), U8(6),
|
|
/* 44 E> */ B(StaGlobalSloppy), U8(0), U8(4),
|
|
B(Ldar), R(0),
|
|
/* 48 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
unallocated = 1;
|
|
function f() { 'use strict'; return --unallocated; }
|
|
f();
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 10
|
|
bytecodes: [
|
|
/* 27 E> */ B(StackCheck),
|
|
/* 46 S> */ B(LdaGlobal), U8(0), U8(2),
|
|
B(Dec), U8(6),
|
|
/* 55 E> */ B(StaGlobalStrict), U8(0), U8(4),
|
|
/* 68 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
unallocated = 1;
|
|
function f() { return unallocated++; }
|
|
f();
|
|
"
|
|
frame size: 1
|
|
parameter count: 1
|
|
bytecode array length: 17
|
|
bytecodes: [
|
|
/* 27 E> */ B(StackCheck),
|
|
/* 32 S> */ B(LdaGlobal), U8(0), U8(2),
|
|
B(ToNumber), R(0), U8(6),
|
|
B(Ldar), R(0),
|
|
B(Inc), U8(6),
|
|
/* 50 E> */ B(StaGlobalSloppy), U8(0), U8(4),
|
|
B(Ldar), R(0),
|
|
/* 54 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|