9d3dc6f219
FunctionEntry StackChecks is one of the two cases where we generate a StackCheck bytecode. In these cases, we do stack check against the js limit (not to be confused with the real js limit). Their purpose is to be able to interrupt the running code. We can omit the FunctionEntry StackCheck by embedding its code into the InterpreterEntryTrampoline builtin. We save one bytecode per interpreted function. This change has rippling effects for optimized code, as well as the deoptimizer. Bug: v8:10149, v8:9977, v8:9960 Change-Id: I6156de48b3bc0b519dd21190a8e6214fbe96c78d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1914218 Reviewed-by: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org> Cr-Commit-Position: refs/heads/master@{#66206}
116 lines
3.0 KiB
Plaintext
116 lines
3.0 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
wrap: no
|
|
top level: yes
|
|
|
|
---
|
|
snippet: "
|
|
|
|
l = {
|
|
'aa': 1.1,
|
|
'bb': 2.2
|
|
};
|
|
|
|
v = l['aa'] + l['bb'];
|
|
l['bb'] = 7;
|
|
l['aa'] = l['bb'];
|
|
|
|
"
|
|
frame size: 3
|
|
parameter count: 1
|
|
bytecode array length: 70
|
|
bytecodes: [
|
|
/* 7 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
/* 9 E> */ B(StaGlobal), U8(1), U8(1),
|
|
/* 66 S> */ B(LdaGlobal), U8(1), U8(4),
|
|
B(Star), R(1),
|
|
/* 71 E> */ B(LdaNamedProperty), R(1), U8(2), U8(6),
|
|
B(Star), R(1),
|
|
/* 80 E> */ B(LdaGlobal), U8(1), U8(4),
|
|
B(Star), R(2),
|
|
/* 81 E> */ B(LdaNamedProperty), R(2), U8(3), U8(8),
|
|
/* 78 E> */ B(Add), R(1), U8(3),
|
|
/* 68 E> */ B(StaGlobal), U8(4), U8(10),
|
|
/* 95 S> */ B(LdaGlobal), U8(1), U8(4),
|
|
B(Star), R(1),
|
|
B(LdaSmi), I8(7),
|
|
/* 103 E> */ B(StaNamedProperty), R(1), U8(3), U8(12),
|
|
/* 114 S> */ B(LdaGlobal), U8(1), U8(4),
|
|
B(Star), R(1),
|
|
/* 124 E> */ B(LdaGlobal), U8(1), U8(4),
|
|
B(Star), R(2),
|
|
/* 125 E> */ B(LdaNamedProperty), R(2), U8(3), U8(8),
|
|
B(Star), R(2),
|
|
/* 122 E> */ B(StaNamedProperty), R(1), U8(2), U8(14),
|
|
B(Mov), R(2), R(0),
|
|
B(Ldar), R(0),
|
|
/* 139 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["l"],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["aa"],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["bb"],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["v"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
|
|
l = {
|
|
'cc': 3.1,
|
|
'dd': 4.2
|
|
};
|
|
if (l['cc'] < 3) {
|
|
l['cc'] = 3;
|
|
} else {
|
|
l['dd'] = 3;
|
|
}
|
|
|
|
"
|
|
frame size: 3
|
|
parameter count: 1
|
|
bytecode array length: 66
|
|
bytecodes: [
|
|
/* 7 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
|
|
/* 9 E> */ B(StaGlobal), U8(1), U8(1),
|
|
/* 65 S> */ B(LdaGlobal), U8(1), U8(3),
|
|
B(Star), R(1),
|
|
/* 70 E> */ B(LdaNamedProperty), R(1), U8(2), U8(5),
|
|
B(Star), R(1),
|
|
B(LdaSmi), I8(3),
|
|
/* 77 E> */ B(TestLessThan), R(1), U8(7),
|
|
B(JumpIfFalse), U8(22),
|
|
/* 92 S> */ B(LdaGlobal), U8(1), U8(3),
|
|
B(Star), R(1),
|
|
B(LdaSmi), I8(3),
|
|
B(Star), R(2),
|
|
/* 100 E> */ B(StaNamedProperty), R(1), U8(2), U8(8),
|
|
B(Mov), R(2), R(0),
|
|
B(Ldar), R(2),
|
|
B(Jump), U8(20),
|
|
/* 128 S> */ B(LdaGlobal), U8(1), U8(3),
|
|
B(Star), R(1),
|
|
B(LdaSmi), I8(3),
|
|
B(Star), R(2),
|
|
/* 136 E> */ B(StaNamedProperty), R(1), U8(3), U8(10),
|
|
B(Mov), R(2), R(0),
|
|
B(Ldar), R(2),
|
|
B(Ldar), R(0),
|
|
/* 155 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["l"],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["cc"],
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["dd"],
|
|
]
|
|
handlers: [
|
|
]
|
|
|