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_X87 | 5 #if V8_TARGET_ARCH_X87 |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 // slow path. | 998 // slow path. |
999 Label call_runtime, use_cache, fixed_array; | 999 Label call_runtime, use_cache, fixed_array; |
1000 __ CheckEnumCache(&call_runtime); | 1000 __ CheckEnumCache(&call_runtime); |
1001 | 1001 |
1002 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); | 1002 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); |
1003 __ jmp(&use_cache, Label::kNear); | 1003 __ jmp(&use_cache, Label::kNear); |
1004 | 1004 |
1005 // Get the set of properties to enumerate. | 1005 // Get the set of properties to enumerate. |
1006 __ bind(&call_runtime); | 1006 __ bind(&call_runtime); |
1007 __ push(eax); | 1007 __ push(eax); |
1008 __ CallRuntime(Runtime::kGetPropertyNamesFast); | 1008 __ CallRuntime(Runtime::kForInEnumerate); |
1009 PrepareForBailoutForId(stmt->EnumId(), TOS_REG); | 1009 PrepareForBailoutForId(stmt->EnumId(), TOS_REG); |
1010 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), | 1010 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), |
1011 isolate()->factory()->meta_map()); | 1011 isolate()->factory()->meta_map()); |
1012 __ j(not_equal, &fixed_array); | 1012 __ j(not_equal, &fixed_array); |
1013 | 1013 |
1014 | 1014 |
1015 // We got a map in register eax. Get the enumeration cache from it. | 1015 // We got a map in register eax. Get the enumeration cache from it. |
1016 Label no_descriptors; | 1016 Label no_descriptors; |
1017 __ bind(&use_cache); | 1017 __ bind(&use_cache); |
1018 | 1018 |
(...skipping 3712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4731 Assembler::target_address_at(call_target_address, | 4731 Assembler::target_address_at(call_target_address, |
4732 unoptimized_code)); | 4732 unoptimized_code)); |
4733 return OSR_AFTER_STACK_CHECK; | 4733 return OSR_AFTER_STACK_CHECK; |
4734 } | 4734 } |
4735 | 4735 |
4736 | 4736 |
4737 } // namespace internal | 4737 } // namespace internal |
4738 } // namespace v8 | 4738 } // namespace v8 |
4739 | 4739 |
4740 #endif // V8_TARGET_ARCH_X87 | 4740 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |