OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 | 1048 |
1049 __ bind(&loop_top); | 1049 __ bind(&loop_top); |
1050 Register temp = edi; | 1050 Register temp = edi; |
1051 | 1051 |
1052 // Does the native context match? | 1052 // Does the native context match? |
1053 __ mov(temp, FieldOperand(map, index, times_half_pointer_size, | 1053 __ mov(temp, FieldOperand(map, index, times_half_pointer_size, |
1054 SharedFunctionInfo::kOffsetToPreviousContext)); | 1054 SharedFunctionInfo::kOffsetToPreviousContext)); |
1055 __ mov(temp, FieldOperand(temp, WeakCell::kValueOffset)); | 1055 __ mov(temp, FieldOperand(temp, WeakCell::kValueOffset)); |
1056 __ cmp(temp, native_context); | 1056 __ cmp(temp, native_context); |
1057 __ j(not_equal, &loop_bottom); | 1057 __ j(not_equal, &loop_bottom); |
| 1058 // OSR id set to none? |
| 1059 __ mov(temp, FieldOperand(map, index, times_half_pointer_size, |
| 1060 SharedFunctionInfo::kOffsetToPreviousOsrAstId)); |
| 1061 const int bailout_id = BailoutId::None().ToInt(); |
| 1062 __ cmp(temp, Immediate(Smi::FromInt(bailout_id))); |
| 1063 __ j(not_equal, &loop_bottom); |
1058 // Literals available? | 1064 // Literals available? |
1059 __ mov(temp, FieldOperand(map, index, times_half_pointer_size, | 1065 __ mov(temp, FieldOperand(map, index, times_half_pointer_size, |
1060 SharedFunctionInfo::kOffsetToPreviousLiterals)); | 1066 SharedFunctionInfo::kOffsetToPreviousLiterals)); |
1061 __ mov(temp, FieldOperand(temp, WeakCell::kValueOffset)); | 1067 __ mov(temp, FieldOperand(temp, WeakCell::kValueOffset)); |
1062 __ JumpIfSmi(temp, &gotta_call_runtime); | 1068 __ JumpIfSmi(temp, &gotta_call_runtime); |
1063 | 1069 |
1064 // Save the literals in the closure. | 1070 // Save the literals in the closure. |
1065 __ mov(ecx, Operand(esp, 0)); | 1071 __ mov(ecx, Operand(esp, 0)); |
1066 __ mov(FieldOperand(ecx, JSFunction::kLiteralsOffset), temp); | 1072 __ mov(FieldOperand(ecx, JSFunction::kLiteralsOffset), temp); |
1067 __ push(index); | 1073 __ push(index); |
(...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3109 | 3115 |
3110 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { | 3116 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
3111 Generate_OnStackReplacementHelper(masm, true); | 3117 Generate_OnStackReplacementHelper(masm, true); |
3112 } | 3118 } |
3113 | 3119 |
3114 #undef __ | 3120 #undef __ |
3115 } // namespace internal | 3121 } // namespace internal |
3116 } // namespace v8 | 3122 } // namespace v8 |
3117 | 3123 |
3118 #endif // V8_TARGET_ARCH_IA32 | 3124 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |