| 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 __ b(eq, &exit); | 1009 __ b(eq, &exit); |
| 1010 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); | 1010 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); |
| 1011 __ b(eq, &exit); | 1011 __ b(eq, &exit); |
| 1012 __ bind(&convert); | 1012 __ bind(&convert); |
| 1013 ToObjectStub stub(isolate()); | 1013 ToObjectStub stub(isolate()); |
| 1014 __ CallStub(&stub); | 1014 __ CallStub(&stub); |
| 1015 __ bind(&done_convert); | 1015 __ bind(&done_convert); |
| 1016 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG); | 1016 PrepareForBailoutForId(stmt->ToObjectId(), TOS_REG); |
| 1017 __ push(r0); | 1017 __ push(r0); |
| 1018 | 1018 |
| 1019 // Check cache validity in generated code. This is a fast case for | 1019 // Check cache validity in generated code. If we cannot guarantee cache |
| 1020 // the JSObject::IsSimpleEnum cache validity checks. If we cannot | 1020 // validity, call the runtime system to check cache validity or get the |
| 1021 // guarantee cache validity, call the runtime system to check cache | 1021 // property names in a fixed array. Note: Proxies never have an enum cache, |
| 1022 // validity or get the property names in a fixed array. | 1022 // so will always take the slow path. |
| 1023 // Note: Proxies never have an enum cache, so will always take the | |
| 1024 // slow path. | |
| 1025 Label call_runtime; | 1023 Label call_runtime; |
| 1026 __ CheckEnumCache(&call_runtime); | 1024 __ CheckEnumCache(&call_runtime); |
| 1027 | 1025 |
| 1028 // The enum cache is valid. Load the map of the object being | 1026 // The enum cache is valid. Load the map of the object being |
| 1029 // iterated over and use the cache for the iteration. | 1027 // iterated over and use the cache for the iteration. |
| 1030 Label use_cache; | 1028 Label use_cache; |
| 1031 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); | 1029 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); |
| 1032 __ b(&use_cache); | 1030 __ b(&use_cache); |
| 1033 | 1031 |
| 1034 // Get the set of properties to enumerate. | 1032 // Get the set of properties to enumerate. |
| (...skipping 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4032 DCHECK(interrupt_address == | 4030 DCHECK(interrupt_address == |
| 4033 isolate->builtins()->OnStackReplacement()->entry()); | 4031 isolate->builtins()->OnStackReplacement()->entry()); |
| 4034 return ON_STACK_REPLACEMENT; | 4032 return ON_STACK_REPLACEMENT; |
| 4035 } | 4033 } |
| 4036 | 4034 |
| 4037 | 4035 |
| 4038 } // namespace internal | 4036 } // namespace internal |
| 4039 } // namespace v8 | 4037 } // namespace v8 |
| 4040 | 4038 |
| 4041 #endif // V8_TARGET_ARCH_ARM | 4039 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |