PPC/s390: Store OSR'd optimized code on the native context.
Port 378b6b22fb
Original Commit Message:
Since we OSR code rarely, it makes sense to store it and look for
it on the native context rather than the SharedFunctionInfo.
This makes the OptimizedCodeMap data structure more space efficient,
as it doesn't have to store an ast ID for the OSR entry point.
R=mvstanton@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=
LOG=N
Review-Url: https://codereview.chromium.org/2557113002
Cr-Commit-Position: refs/heads/master@{#41562}
This commit is contained in:
parent
0d29250547
commit
3bc53ad765
@ -1390,13 +1390,6 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
|
||||
__ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
|
||||
__ cmp(temp, native_context);
|
||||
__ bne(&loop_bottom);
|
||||
// OSR id set to none?
|
||||
__ LoadP(temp,
|
||||
FieldMemOperand(array_pointer,
|
||||
SharedFunctionInfo::kOffsetToPreviousOsrAstId));
|
||||
const int bailout_id = BailoutId::None().ToInt();
|
||||
__ CmpSmiLiteral(temp, Smi::FromInt(bailout_id), r0);
|
||||
__ bne(&loop_bottom);
|
||||
// Literals available?
|
||||
__ LoadP(temp,
|
||||
FieldMemOperand(array_pointer,
|
||||
|
@ -1395,13 +1395,6 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
|
||||
__ LoadP(temp, FieldMemOperand(temp, WeakCell::kValueOffset));
|
||||
__ CmpP(temp, native_context);
|
||||
__ bne(&loop_bottom, Label::kNear);
|
||||
// OSR id set to none?
|
||||
__ LoadP(temp,
|
||||
FieldMemOperand(array_pointer,
|
||||
SharedFunctionInfo::kOffsetToPreviousOsrAstId));
|
||||
const int bailout_id = BailoutId::None().ToInt();
|
||||
__ CmpSmiLiteral(temp, Smi::FromInt(bailout_id), r0);
|
||||
__ bne(&loop_bottom, Label::kNear);
|
||||
// Literals available?
|
||||
__ LoadP(temp,
|
||||
FieldMemOperand(array_pointer,
|
||||
|
Loading…
Reference in New Issue
Block a user