| 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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 __ JumpIfSmi(r0, &convert); | 998 __ JumpIfSmi(r0, &convert); |
| 999 __ CompareObjectType(r0, r1, r1, FIRST_JS_RECEIVER_TYPE); | 999 __ CompareObjectType(r0, r1, r1, FIRST_JS_RECEIVER_TYPE); |
| 1000 __ b(ge, &done_convert); | 1000 __ b(ge, &done_convert); |
| 1001 __ CompareRoot(r0, Heap::kNullValueRootIndex); | 1001 __ CompareRoot(r0, Heap::kNullValueRootIndex); |
| 1002 __ b(eq, &exit); | 1002 __ b(eq, &exit); |
| 1003 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); | 1003 __ CompareRoot(r0, Heap::kUndefinedValueRootIndex); |
| 1004 __ b(eq, &exit); | 1004 __ b(eq, &exit); |
| 1005 __ bind(&convert); | 1005 __ bind(&convert); |
| 1006 ToObjectStub stub(isolate()); | 1006 ToObjectStub stub(isolate()); |
| 1007 __ CallStub(&stub); | 1007 __ CallStub(&stub); |
| 1008 RestoreContext(); |
| 1008 __ bind(&done_convert); | 1009 __ bind(&done_convert); |
| 1009 PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); | 1010 PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); |
| 1010 __ push(r0); | 1011 __ push(r0); |
| 1011 | 1012 |
| 1012 // Check cache validity in generated code. If we cannot guarantee cache | 1013 // Check cache validity in generated code. If we cannot guarantee cache |
| 1013 // validity, call the runtime system to check cache validity or get the | 1014 // validity, call the runtime system to check cache validity or get the |
| 1014 // property names in a fixed array. Note: Proxies never have an enum cache, | 1015 // property names in a fixed array. Note: Proxies never have an enum cache, |
| 1015 // so will always take the slow path. | 1016 // so will always take the slow path. |
| 1016 Label call_runtime; | 1017 Label call_runtime; |
| 1017 __ CheckEnumCache(&call_runtime); | 1018 __ CheckEnumCache(&call_runtime); |
| (...skipping 2820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3838 DCHECK(interrupt_address == | 3839 DCHECK(interrupt_address == |
| 3839 isolate->builtins()->OnStackReplacement()->entry()); | 3840 isolate->builtins()->OnStackReplacement()->entry()); |
| 3840 return ON_STACK_REPLACEMENT; | 3841 return ON_STACK_REPLACEMENT; |
| 3841 } | 3842 } |
| 3842 | 3843 |
| 3843 | 3844 |
| 3844 } // namespace internal | 3845 } // namespace internal |
| 3845 } // namespace v8 | 3846 } // namespace v8 |
| 3846 | 3847 |
| 3847 #endif // V8_TARGET_ARCH_ARM | 3848 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |