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 2541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2552 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); | 2552 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); |
2553 __ Move(vector_register, vector); | 2553 __ Move(vector_register, vector); |
2554 FeedbackVectorSlot slot = instr->hydrogen()->slot(); | 2554 FeedbackVectorSlot slot = instr->hydrogen()->slot(); |
2555 int index = vector->GetIndex(slot); | 2555 int index = vector->GetIndex(slot); |
2556 __ Move(slot_register, Smi::FromInt(index)); | 2556 __ Move(slot_register, Smi::FromInt(index)); |
2557 } | 2557 } |
2558 | 2558 |
2559 | 2559 |
2560 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { | 2560 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
2561 DCHECK(ToRegister(instr->context()).is(rsi)); | 2561 DCHECK(ToRegister(instr->context()).is(rsi)); |
2562 DCHECK(ToRegister(instr->global_object()) | |
2563 .is(LoadDescriptor::ReceiverRegister())); | |
2564 DCHECK(ToRegister(instr->result()).is(rax)); | 2562 DCHECK(ToRegister(instr->result()).is(rax)); |
2565 | 2563 |
2566 __ Move(LoadDescriptor::NameRegister(), instr->name()); | |
2567 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); | 2564 EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
2568 Handle<Code> ic = | 2565 Handle<Code> ic = |
2569 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) | 2566 CodeFactory::LoadGlobalICInOptimizedCode(isolate(), instr->typeof_mode()) |
2570 .code(); | 2567 .code(); |
2571 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2568 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
2572 } | 2569 } |
2573 | 2570 |
2574 | 2571 |
2575 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2572 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
2576 Register context = ToRegister(instr->context()); | 2573 Register context = ToRegister(instr->context()); |
(...skipping 3012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5589 __ bind(deferred->exit()); | 5586 __ bind(deferred->exit()); |
5590 __ bind(&done); | 5587 __ bind(&done); |
5591 } | 5588 } |
5592 | 5589 |
5593 #undef __ | 5590 #undef __ |
5594 | 5591 |
5595 } // namespace internal | 5592 } // namespace internal |
5596 } // namespace v8 | 5593 } // namespace v8 |
5597 | 5594 |
5598 #endif // V8_TARGET_ARCH_X64 | 5595 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |