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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 5191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5202 flags = AllocateTargetSpace::update(flags, NEW_SPACE); | 5202 flags = AllocateTargetSpace::update(flags, NEW_SPACE); |
5203 } | 5203 } |
5204 __ Push(Smi::FromInt(flags)); | 5204 __ Push(Smi::FromInt(flags)); |
5205 | 5205 |
5206 CallRuntimeFromDeferred( | 5206 CallRuntimeFromDeferred( |
5207 Runtime::kAllocateInTargetSpace, 2, instr, instr->context()); | 5207 Runtime::kAllocateInTargetSpace, 2, instr, instr->context()); |
5208 __ StoreToSafepointRegisterSlot(result, rax); | 5208 __ StoreToSafepointRegisterSlot(result, rax); |
5209 } | 5209 } |
5210 | 5210 |
5211 | 5211 |
5212 void LCodeGen::DoToFastProperties(LToFastProperties* instr) { | |
5213 DCHECK(ToRegister(instr->value()).is(rax)); | |
5214 __ Push(rax); | |
5215 CallRuntime(Runtime::kToFastProperties, 1, instr); | |
5216 } | |
5217 | |
5218 | |
5219 void LCodeGen::DoTypeof(LTypeof* instr) { | 5212 void LCodeGen::DoTypeof(LTypeof* instr) { |
5220 DCHECK(ToRegister(instr->context()).is(rsi)); | 5213 DCHECK(ToRegister(instr->context()).is(rsi)); |
5221 DCHECK(ToRegister(instr->value()).is(rbx)); | 5214 DCHECK(ToRegister(instr->value()).is(rbx)); |
5222 Label end, do_call; | 5215 Label end, do_call; |
5223 Register value_register = ToRegister(instr->value()); | 5216 Register value_register = ToRegister(instr->value()); |
5224 __ JumpIfNotSmi(value_register, &do_call); | 5217 __ JumpIfNotSmi(value_register, &do_call); |
5225 __ Move(rax, isolate()->factory()->number_string()); | 5218 __ Move(rax, isolate()->factory()->number_string()); |
5226 __ jmp(&end); | 5219 __ jmp(&end); |
5227 __ bind(&do_call); | 5220 __ bind(&do_call); |
5228 TypeofStub stub(isolate()); | 5221 TypeofStub stub(isolate()); |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5581 __ movp(Operand(rbp, StandardFrameConstants::kContextOffset), context); | 5574 __ movp(Operand(rbp, StandardFrameConstants::kContextOffset), context); |
5582 } | 5575 } |
5583 | 5576 |
5584 | 5577 |
5585 #undef __ | 5578 #undef __ |
5586 | 5579 |
5587 } // namespace internal | 5580 } // namespace internal |
5588 } // namespace v8 | 5581 } // namespace v8 |
5589 | 5582 |
5590 #endif // V8_TARGET_ARCH_X64 | 5583 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |