Chromium Code Reviews| 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 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 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 2808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2819 | 2819 |
| 2820 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { | 2820 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
| 2821 Register object = ToRegister(instr->object()); | 2821 Register object = ToRegister(instr->object()); |
| 2822 Register null_value = x5; | 2822 Register null_value = x5; |
| 2823 | 2823 |
| 2824 DCHECK(instr->IsMarkedAsCall()); | 2824 DCHECK(instr->IsMarkedAsCall()); |
| 2825 DCHECK(object.Is(x0)); | 2825 DCHECK(object.Is(x0)); |
| 2826 | 2826 |
| 2827 DeoptimizeIfSmi(object, instr, Deoptimizer::kSmi); | 2827 DeoptimizeIfSmi(object, instr, Deoptimizer::kSmi); |
| 2828 | 2828 |
| 2829 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); | 2829 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
| 2830 __ CompareObjectType(object, x1, x1, LAST_JS_PROXY_TYPE); | 2830 __ CompareObjectType(object, x1, x1, JS_PROXY_TYPE); |
| 2831 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject); | 2831 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject); |
|
Toon Verwaest
2015/12/03 11:48:41
le->eq
| |
| 2832 | 2832 |
| 2833 Label use_cache, call_runtime; | 2833 Label use_cache, call_runtime; |
| 2834 __ LoadRoot(null_value, Heap::kNullValueRootIndex); | 2834 __ LoadRoot(null_value, Heap::kNullValueRootIndex); |
| 2835 __ CheckEnumCache(object, null_value, x1, x2, x3, x4, &call_runtime); | 2835 __ CheckEnumCache(object, null_value, x1, x2, x3, x4, &call_runtime); |
| 2836 | 2836 |
| 2837 __ Ldr(object, FieldMemOperand(object, HeapObject::kMapOffset)); | 2837 __ Ldr(object, FieldMemOperand(object, HeapObject::kMapOffset)); |
| 2838 __ B(&use_cache); | 2838 __ B(&use_cache); |
| 2839 | 2839 |
| 2840 // Get the set of properties to enumerate. | 2840 // Get the set of properties to enumerate. |
| 2841 __ Bind(&call_runtime); | 2841 __ Bind(&call_runtime); |
| (...skipping 3030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5872 Handle<ScopeInfo> scope_info = instr->scope_info(); | 5872 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 5873 __ Push(scope_info); | 5873 __ Push(scope_info); |
| 5874 __ Push(ToRegister(instr->function())); | 5874 __ Push(ToRegister(instr->function())); |
| 5875 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5875 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5876 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5876 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5877 } | 5877 } |
| 5878 | 5878 |
| 5879 | 5879 |
| 5880 } // namespace internal | 5880 } // namespace internal |
| 5881 } // namespace v8 | 5881 } // namespace v8 |
| OLD | NEW |