OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 <assert.h> // For assert | 5 #include <assert.h> // For assert |
6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
7 | 7 |
8 #if V8_TARGET_ARCH_PPC | 8 #if V8_TARGET_ARCH_PPC |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 if (FLAG_enable_embedded_constant_pool) { | 818 if (FLAG_enable_embedded_constant_pool) { |
819 // base contains prologue address | 819 // base contains prologue address |
820 LoadConstantPoolPointerRegister(base, -prologue_offset); | 820 LoadConstantPoolPointerRegister(base, -prologue_offset); |
821 set_constant_pool_available(true); | 821 set_constant_pool_available(true); |
822 } | 822 } |
823 } | 823 } |
824 | 824 |
825 | 825 |
826 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 826 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
827 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 827 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
828 LoadP(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); | 828 LoadP(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); |
829 LoadP(vector, | 829 LoadP(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); |
830 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); | |
831 } | 830 } |
832 | 831 |
833 | 832 |
834 void MacroAssembler::EnterFrame(StackFrame::Type type, | 833 void MacroAssembler::EnterFrame(StackFrame::Type type, |
835 bool load_constant_pool_pointer_reg) { | 834 bool load_constant_pool_pointer_reg) { |
836 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { | 835 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { |
837 PushFixedFrame(); | 836 PushFixedFrame(); |
838 // This path should not rely on ip containing code entry. | 837 // This path should not rely on ip containing code entry. |
839 LoadConstantPoolPointerRegister(); | 838 LoadConstantPoolPointerRegister(); |
840 LoadSmiLiteral(ip, Smi::FromInt(type)); | 839 LoadSmiLiteral(ip, Smi::FromInt(type)); |
(...skipping 3508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4349 } | 4348 } |
4350 if (mag.shift > 0) srawi(result, result, mag.shift); | 4349 if (mag.shift > 0) srawi(result, result, mag.shift); |
4351 ExtractBit(r0, dividend, 31); | 4350 ExtractBit(r0, dividend, 31); |
4352 add(result, result, r0); | 4351 add(result, result, r0); |
4353 } | 4352 } |
4354 | 4353 |
4355 } // namespace internal | 4354 } // namespace internal |
4356 } // namespace v8 | 4355 } // namespace v8 |
4357 | 4356 |
4358 #endif // V8_TARGET_ARCH_PPC | 4357 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |