| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" | 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" |
| 7 | 7 |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2728 // Read int value directly from upper half of the smi. | 2728 // Read int value directly from upper half of the smi. |
| 2729 offset = SmiWordOffset(offset); | 2729 offset = SmiWordOffset(offset); |
| 2730 representation = Representation::Integer32(); | 2730 representation = Representation::Integer32(); |
| 2731 } | 2731 } |
| 2732 #endif | 2732 #endif |
| 2733 | 2733 |
| 2734 __ LoadRepresentation(result, FieldMemOperand(object, offset), representation, | 2734 __ LoadRepresentation(result, FieldMemOperand(object, offset), representation, |
| 2735 r0); | 2735 r0); |
| 2736 } | 2736 } |
| 2737 | 2737 |
| 2738 void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { | |
| 2739 DCHECK(ToRegister(instr->context()).is(cp)); | |
| 2740 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); | |
| 2741 DCHECK(ToRegister(instr->result()).is(r2)); | |
| 2742 | |
| 2743 // Name is always in r4. | |
| 2744 __ mov(LoadDescriptor::NameRegister(), Operand(instr->name())); | |
| 2745 EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); | |
| 2746 Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate()).code(); | |
| 2747 CallCode(ic, RelocInfo::CODE_TARGET, instr); | |
| 2748 } | |
| 2749 | |
| 2750 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { | 2738 void LCodeGen::DoLoadFunctionPrototype(LLoadFunctionPrototype* instr) { |
| 2751 Register scratch = scratch0(); | 2739 Register scratch = scratch0(); |
| 2752 Register function = ToRegister(instr->function()); | 2740 Register function = ToRegister(instr->function()); |
| 2753 Register result = ToRegister(instr->result()); | 2741 Register result = ToRegister(instr->result()); |
| 2754 | 2742 |
| 2755 // Get the prototype or initial map from the function. | 2743 // Get the prototype or initial map from the function. |
| 2756 __ LoadP(result, | 2744 __ LoadP(result, |
| 2757 FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset)); | 2745 FieldMemOperand(function, JSFunction::kPrototypeOrInitialMapOffset)); |
| 2758 | 2746 |
| 2759 // Check that the function has a prototype or an initial map. | 2747 // Check that the function has a prototype or an initial map. |
| (...skipping 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5613 __ LoadP(result, | 5601 __ LoadP(result, |
| 5614 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5602 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
| 5615 __ bind(deferred->exit()); | 5603 __ bind(deferred->exit()); |
| 5616 __ bind(&done); | 5604 __ bind(&done); |
| 5617 } | 5605 } |
| 5618 | 5606 |
| 5619 #undef __ | 5607 #undef __ |
| 5620 | 5608 |
| 5621 } // namespace internal | 5609 } // namespace internal |
| 5622 } // namespace v8 | 5610 } // namespace v8 |
| OLD | NEW |