37680d6563
Instead of having feedback vector as a subtype of FixedArray with reserved slots, make it a first-class variable-sized object with a fixed-size header. This allows us to compress counters to ints in the header, rather than forcing them to be Smis. Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng Change-Id: Icc5f088ffbc2e2651b845bc71ea42060639e3e48 Reviewed-on: https://chromium-review.googlesource.com/585129 Commit-Queue: Leszek Swirski <leszeks@chromium.org> Reviewed-by: Michael Stanton <mvstanton@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#46935}
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(0),
|
|
B(Inc), U8(4),
|
|
/* 40 E> */ B(StaGlobalSloppy), U8(0), U8(2),
|
|
/* 47 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(0),
|
|
B(ToNumber), R(0), U8(4),
|
|
B(Ldar), R(0),
|
|
B(Dec), U8(4),
|
|
/* 44 E> */ B(StaGlobalSloppy), U8(0), U8(2),
|
|
B(Ldar), R(0),
|
|
/* 47 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(0),
|
|
B(Dec), U8(4),
|
|
/* 55 E> */ B(StaGlobalStrict), U8(0), U8(2),
|
|
/* 67 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(0),
|
|
B(ToNumber), R(0), U8(4),
|
|
B(Ldar), R(0),
|
|
B(Inc), U8(4),
|
|
/* 50 E> */ B(StaGlobalSloppy), U8(0), U8(2),
|
|
B(Ldar), R(0),
|
|
/* 53 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|