| 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/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
| (...skipping 5161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5172 flags = AllocateTargetSpace::update(flags, NEW_SPACE); | 5172 flags = AllocateTargetSpace::update(flags, NEW_SPACE); |
| 5173 } | 5173 } |
| 5174 __ Push(Smi::FromInt(flags)); | 5174 __ Push(Smi::FromInt(flags)); |
| 5175 | 5175 |
| 5176 CallRuntimeFromDeferred( | 5176 CallRuntimeFromDeferred( |
| 5177 Runtime::kAllocateInTargetSpace, 2, instr, instr->context()); | 5177 Runtime::kAllocateInTargetSpace, 2, instr, instr->context()); |
| 5178 __ StoreToSafepointRegisterSlot(r0, result); | 5178 __ StoreToSafepointRegisterSlot(r0, result); |
| 5179 } | 5179 } |
| 5180 | 5180 |
| 5181 | 5181 |
| 5182 void LCodeGen::DoToFastProperties(LToFastProperties* instr) { | |
| 5183 DCHECK(ToRegister(instr->value()).is(r0)); | |
| 5184 __ push(r0); | |
| 5185 CallRuntime(Runtime::kToFastProperties, 1, instr); | |
| 5186 } | |
| 5187 | |
| 5188 | |
| 5189 void LCodeGen::DoTypeof(LTypeof* instr) { | 5182 void LCodeGen::DoTypeof(LTypeof* instr) { |
| 5190 DCHECK(ToRegister(instr->value()).is(r3)); | 5183 DCHECK(ToRegister(instr->value()).is(r3)); |
| 5191 DCHECK(ToRegister(instr->result()).is(r0)); | 5184 DCHECK(ToRegister(instr->result()).is(r0)); |
| 5192 Label end, do_call; | 5185 Label end, do_call; |
| 5193 Register value_register = ToRegister(instr->value()); | 5186 Register value_register = ToRegister(instr->value()); |
| 5194 __ JumpIfNotSmi(value_register, &do_call); | 5187 __ JumpIfNotSmi(value_register, &do_call); |
| 5195 __ mov(r0, Operand(isolate()->factory()->number_string())); | 5188 __ mov(r0, Operand(isolate()->factory()->number_string())); |
| 5196 __ jmp(&end); | 5189 __ jmp(&end); |
| 5197 __ bind(&do_call); | 5190 __ bind(&do_call); |
| 5198 TypeofStub stub(isolate()); | 5191 TypeofStub stub(isolate()); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5548 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5541 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
| 5549 Register context = ToRegister(instr->context()); | 5542 Register context = ToRegister(instr->context()); |
| 5550 __ str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 5543 __ str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 5551 } | 5544 } |
| 5552 | 5545 |
| 5553 | 5546 |
| 5554 #undef __ | 5547 #undef __ |
| 5555 | 5548 |
| 5556 } // namespace internal | 5549 } // namespace internal |
| 5557 } // namespace v8 | 5550 } // namespace v8 |
| OLD | NEW |