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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 __ add(esp, Immediate(kPointerSize)); | 1108 __ add(esp, Immediate(kPointerSize)); |
1109 __ jmp(&exit); | 1109 __ jmp(&exit); |
1110 | 1110 |
1111 // We got a fixed array in register eax. Iterate through that. | 1111 // We got a fixed array in register eax. Iterate through that. |
1112 Label non_proxy; | 1112 Label non_proxy; |
1113 __ bind(&fixed_array); | 1113 __ bind(&fixed_array); |
1114 | 1114 |
1115 // No need for a write barrier, we are storing a Smi in the feedback vector. | 1115 // No need for a write barrier, we are storing a Smi in the feedback vector. |
1116 __ LoadHeapObject(ebx, FeedbackVector()); | 1116 __ LoadHeapObject(ebx, FeedbackVector()); |
1117 __ mov(FieldOperand(ebx, FixedArray::OffsetOfElementAt(slot)), | 1117 __ mov(FieldOperand(ebx, FixedArray::OffsetOfElementAt(slot)), |
1118 Immediate(TypeFeedbackInfo::MegamorphicSentinel(isolate()))); | 1118 Immediate(TypeFeedbackVector::MegamorphicSentinel(isolate()))); |
1119 | 1119 |
1120 __ mov(ebx, Immediate(Smi::FromInt(1))); // Smi indicates slow check | 1120 __ mov(ebx, Immediate(Smi::FromInt(1))); // Smi indicates slow check |
1121 __ mov(ecx, Operand(esp, 0 * kPointerSize)); // Get enumerated object | 1121 __ mov(ecx, Operand(esp, 0 * kPointerSize)); // Get enumerated object |
1122 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); | 1122 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); |
1123 __ CmpObjectType(ecx, LAST_JS_PROXY_TYPE, ecx); | 1123 __ CmpObjectType(ecx, LAST_JS_PROXY_TYPE, ecx); |
1124 __ j(above, &non_proxy); | 1124 __ j(above, &non_proxy); |
1125 __ Move(ebx, Immediate(Smi::FromInt(0))); // Zero indicates proxy | 1125 __ Move(ebx, Immediate(Smi::FromInt(0))); // Zero indicates proxy |
1126 __ bind(&non_proxy); | 1126 __ bind(&non_proxy); |
1127 __ push(ebx); // Smi | 1127 __ push(ebx); // Smi |
1128 __ push(eax); // Array | 1128 __ push(eax); // Array |
(...skipping 3687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4816 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4816 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4817 Assembler::target_address_at(call_target_address, | 4817 Assembler::target_address_at(call_target_address, |
4818 unoptimized_code)); | 4818 unoptimized_code)); |
4819 return OSR_AFTER_STACK_CHECK; | 4819 return OSR_AFTER_STACK_CHECK; |
4820 } | 4820 } |
4821 | 4821 |
4822 | 4822 |
4823 } } // namespace v8::internal | 4823 } } // namespace v8::internal |
4824 | 4824 |
4825 #endif // V8_TARGET_ARCH_X87 | 4825 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |