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 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 5768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5779 } | 5779 } |
5780 | 5780 |
5781 | 5781 |
5782 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { | 5782 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
5783 Register result = ToRegister(instr->result()); | 5783 Register result = ToRegister(instr->result()); |
5784 Register object = ToRegister(instr->object()); | 5784 Register object = ToRegister(instr->object()); |
5785 | 5785 |
5786 __ And(at, object, kSmiTagMask); | 5786 __ And(at, object, kSmiTagMask); |
5787 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg)); | 5787 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg)); |
5788 | 5788 |
5789 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); | 5789 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
5790 __ GetObjectType(object, a1, a1); | 5790 __ GetObjectType(object, a1, a1); |
5791 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject, a1, | 5791 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject, a1, |
5792 Operand(LAST_JS_PROXY_TYPE)); | 5792 Operand(JS_PROXY_TYPE)); |
5793 | 5793 |
5794 Label use_cache, call_runtime; | 5794 Label use_cache, call_runtime; |
5795 DCHECK(object.is(a0)); | 5795 DCHECK(object.is(a0)); |
5796 Register null_value = a5; | 5796 Register null_value = a5; |
5797 __ LoadRoot(null_value, Heap::kNullValueRootIndex); | 5797 __ LoadRoot(null_value, Heap::kNullValueRootIndex); |
5798 __ CheckEnumCache(null_value, &call_runtime); | 5798 __ CheckEnumCache(null_value, &call_runtime); |
5799 | 5799 |
5800 __ ld(result, FieldMemOperand(object, HeapObject::kMapOffset)); | 5800 __ ld(result, FieldMemOperand(object, HeapObject::kMapOffset)); |
5801 __ Branch(&use_cache); | 5801 __ Branch(&use_cache); |
5802 | 5802 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5927 __ Push(at, ToRegister(instr->function())); | 5927 __ Push(at, ToRegister(instr->function())); |
5928 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5928 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5929 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5929 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5930 } | 5930 } |
5931 | 5931 |
5932 | 5932 |
5933 #undef __ | 5933 #undef __ |
5934 | 5934 |
5935 } // namespace internal | 5935 } // namespace internal |
5936 } // namespace v8 | 5936 } // namespace v8 |
OLD | NEW |