| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 // If the object is null or undefined, skip over the loop, otherwise convert | 994 // If the object is null or undefined, skip over the loop, otherwise convert |
| 995 // it to a JS receiver. See ECMA-262 version 5, section 12.6.4. | 995 // it to a JS receiver. See ECMA-262 version 5, section 12.6.4. |
| 996 Label convert, done_convert; | 996 Label convert, done_convert; |
| 997 __ JumpIfSmi(x0, &convert); | 997 __ JumpIfSmi(x0, &convert); |
| 998 __ JumpIfObjectType(x0, x10, x11, FIRST_JS_RECEIVER_TYPE, &done_convert, ge); | 998 __ JumpIfObjectType(x0, x10, x11, FIRST_JS_RECEIVER_TYPE, &done_convert, ge); |
| 999 __ JumpIfRoot(x0, Heap::kNullValueRootIndex, &exit); | 999 __ JumpIfRoot(x0, Heap::kNullValueRootIndex, &exit); |
| 1000 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, &exit); | 1000 __ JumpIfRoot(x0, Heap::kUndefinedValueRootIndex, &exit); |
| 1001 __ Bind(&convert); | 1001 __ Bind(&convert); |
| 1002 ToObjectStub stub(isolate()); | 1002 ToObjectStub stub(isolate()); |
| 1003 __ CallStub(&stub); | 1003 __ CallStub(&stub); |
| 1004 RestoreContext(); |
| 1004 __ Bind(&done_convert); | 1005 __ Bind(&done_convert); |
| 1005 PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); | 1006 PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); |
| 1006 __ Push(x0); | 1007 __ Push(x0); |
| 1007 | 1008 |
| 1008 // Check cache validity in generated code. If we cannot guarantee cache | 1009 // Check cache validity in generated code. If we cannot guarantee cache |
| 1009 // validity, call the runtime system to check cache validity or get the | 1010 // validity, call the runtime system to check cache validity or get the |
| 1010 // property names in a fixed array. Note: Proxies never have an enum cache, | 1011 // property names in a fixed array. Note: Proxies never have an enum cache, |
| 1011 // so will always take the slow path. | 1012 // so will always take the slow path. |
| 1012 Label call_runtime; | 1013 Label call_runtime; |
| 1013 __ CheckEnumCache(x0, x15, x10, x11, x12, x13, &call_runtime); | 1014 __ CheckEnumCache(x0, x15, x10, x11, x12, x13, &call_runtime); |
| (...skipping 2831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3845 } | 3846 } |
| 3846 | 3847 |
| 3847 return INTERRUPT; | 3848 return INTERRUPT; |
| 3848 } | 3849 } |
| 3849 | 3850 |
| 3850 | 3851 |
| 3851 } // namespace internal | 3852 } // namespace internal |
| 3852 } // namespace v8 | 3853 } // namespace v8 |
| 3853 | 3854 |
| 3854 #endif // V8_TARGET_ARCH_ARM64 | 3855 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |