Index: src/builtins/x87/builtins-x87.cc |
diff --git a/src/builtins/x87/builtins-x87.cc b/src/builtins/x87/builtins-x87.cc |
index 237a8ee1954670887350d937b212a9375148425d..38c20e32e40ab9f398331cecb944f578db876d30 100644 |
--- a/src/builtins/x87/builtins-x87.cc |
+++ b/src/builtins/x87/builtins-x87.cc |
@@ -1162,12 +1162,9 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
__ pop(new_target); |
__ pop(argument_count); |
__ mov(entry, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset)); |
- // Is the shared function marked for optimization? |
- __ test_b( |
- FieldOperand(entry, |
- SharedFunctionInfo::kWasMarkedForOptimizationByteOffset), |
- Immediate( |
- 1 << SharedFunctionInfo::kWasMarkedForOptimizationBitWithinByte)); |
+ // Is the shared function marked for tier up? |
+ __ test_b(FieldOperand(entry, SharedFunctionInfo::kMarkedForTierUpByteOffset), |
+ Immediate(1 << SharedFunctionInfo::kMarkedForTierUpBitWithinByte)); |
__ j(not_zero, &gotta_call_runtime_no_stack); |
// Is the full code valid? |
__ mov(entry, FieldOperand(entry, SharedFunctionInfo::kCodeOffset)); |