Commit 007a1865 authored by zhengxing.li's avatar zhengxing.li Committed by Commit bot

X87: Store OSR'd optimized code on the native context.

  port 378b6b22 (r41554)

  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.

BUG=

Review-Url: https://codereview.chromium.org/2559083002
Cr-Commit-Position: refs/heads/master@{#41606}
parent bb309a69
...@@ -1056,12 +1056,6 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { ...@@ -1056,12 +1056,6 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
__ mov(temp, FieldOperand(temp, WeakCell::kValueOffset)); __ mov(temp, FieldOperand(temp, WeakCell::kValueOffset));
__ cmp(temp, native_context); __ cmp(temp, native_context);
__ j(not_equal, &loop_bottom); __ j(not_equal, &loop_bottom);
// OSR id set to none?
__ mov(temp, FieldOperand(map, index, times_half_pointer_size,
SharedFunctionInfo::kOffsetToPreviousOsrAstId));
const int bailout_id = BailoutId::None().ToInt();
__ cmp(temp, Immediate(Smi::FromInt(bailout_id)));
__ j(not_equal, &loop_bottom);
// Literals available? // Literals available?
__ mov(temp, FieldOperand(map, index, times_half_pointer_size, __ mov(temp, FieldOperand(map, index, times_half_pointer_size,
SharedFunctionInfo::kOffsetToPreviousLiterals)); SharedFunctionInfo::kOffsetToPreviousLiterals));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment