Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ppc/lithium-codegen-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.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/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
| (...skipping 5811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5822 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 5822 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
| 5823 | 5823 |
| 5824 GenerateOsrPrologue(); | 5824 GenerateOsrPrologue(); |
| 5825 } | 5825 } |
| 5826 | 5826 |
| 5827 | 5827 |
| 5828 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { | 5828 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
| 5829 __ TestIfSmi(r3, r0); | 5829 __ TestIfSmi(r3, r0); |
| 5830 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, cr0); | 5830 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, cr0); |
| 5831 | 5831 |
| 5832 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); | 5832 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
| 5833 __ CompareObjectType(r3, r4, r4, LAST_JS_PROXY_TYPE); | 5833 __ CompareObjectType(r3, r4, r4, JS_PROXY_TYPE); |
| 5834 DeoptimizeIf(le, instr, Deoptimizer::kWrongInstanceType); | 5834 DeoptimizeIf(le, instr, Deoptimizer::kWrongInstanceType); |
|
Toon Verwaest
2015/12/03 11:48:41
eq
| |
| 5835 | 5835 |
| 5836 Label use_cache, call_runtime; | 5836 Label use_cache, call_runtime; |
| 5837 Register null_value = r8; | 5837 Register null_value = r8; |
| 5838 __ LoadRoot(null_value, Heap::kNullValueRootIndex); | 5838 __ LoadRoot(null_value, Heap::kNullValueRootIndex); |
| 5839 __ CheckEnumCache(null_value, &call_runtime); | 5839 __ CheckEnumCache(null_value, &call_runtime); |
| 5840 | 5840 |
| 5841 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); | 5841 __ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset)); |
| 5842 __ b(&use_cache); | 5842 __ b(&use_cache); |
| 5843 | 5843 |
| 5844 // Get the set of properties to enumerate. | 5844 // Get the set of properties to enumerate. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5966 __ Push(scope_info); | 5966 __ Push(scope_info); |
| 5967 __ push(ToRegister(instr->function())); | 5967 __ push(ToRegister(instr->function())); |
| 5968 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5968 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5969 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5969 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5970 } | 5970 } |
| 5971 | 5971 |
| 5972 | 5972 |
| 5973 #undef __ | 5973 #undef __ |
| 5974 } // namespace internal | 5974 } // namespace internal |
| 5975 } // namespace v8 | 5975 } // namespace v8 |
| OLD | NEW |