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}
53 lines
970 B
Plaintext
53 lines
970 B
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
wrap: no
|
|
test function name: f
|
|
|
|
---
|
|
snippet: "
|
|
var global = 1;
|
|
function f() { return global &= 1; }
|
|
f();
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 11
|
|
bytecodes: [
|
|
/* 26 E> */ B(StackCheck),
|
|
/* 31 S> */ B(LdaGlobal), U8(0), U8(0),
|
|
B(BitwiseAndSmi), I8(1), U8(2),
|
|
/* 45 E> */ B(StaGlobalSloppy), U8(0), U8(3),
|
|
/* 50 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["global"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
unallocated = 1;
|
|
function f() { return unallocated += 1; }
|
|
f();
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 11
|
|
bytecodes: [
|
|
/* 27 E> */ B(StackCheck),
|
|
/* 32 S> */ B(LdaGlobal), U8(0), U8(0),
|
|
B(AddSmi), I8(1), U8(2),
|
|
/* 51 E> */ B(StaGlobalSloppy), U8(0), U8(3),
|
|
/* 56 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["unallocated"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|