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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 if (FLAG_enable_embedded_constant_pool) { | 1016 if (FLAG_enable_embedded_constant_pool) { |
1017 // base contains prologue address | 1017 // base contains prologue address |
1018 LoadConstantPoolPointerRegister(base, -prologue_offset); | 1018 LoadConstantPoolPointerRegister(base, -prologue_offset); |
1019 set_constant_pool_available(true); | 1019 set_constant_pool_available(true); |
1020 } | 1020 } |
1021 } | 1021 } |
1022 | 1022 |
1023 | 1023 |
1024 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 1024 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
1025 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1025 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1026 LoadP(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); | 1026 LoadP(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset)); |
1027 LoadP(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | |
1028 } | 1027 } |
1029 | 1028 |
1030 | 1029 |
1031 void MacroAssembler::EnterFrame(StackFrame::Type type, | 1030 void MacroAssembler::EnterFrame(StackFrame::Type type, |
1032 bool load_constant_pool_pointer_reg) { | 1031 bool load_constant_pool_pointer_reg) { |
1033 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { | 1032 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { |
1034 // Push type explicitly so we can leverage the constant pool. | 1033 // Push type explicitly so we can leverage the constant pool. |
1035 // This path cannot rely on ip containing code entry. | 1034 // This path cannot rely on ip containing code entry. |
1036 PushCommonFrame(); | 1035 PushCommonFrame(); |
1037 LoadConstantPoolPointerRegister(); | 1036 LoadConstantPoolPointerRegister(); |
(...skipping 3358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4396 } | 4395 } |
4397 if (mag.shift > 0) srawi(result, result, mag.shift); | 4396 if (mag.shift > 0) srawi(result, result, mag.shift); |
4398 ExtractBit(r0, dividend, 31); | 4397 ExtractBit(r0, dividend, 31); |
4399 add(result, result, r0); | 4398 add(result, result, r0); |
4400 } | 4399 } |
4401 | 4400 |
4402 } // namespace internal | 4401 } // namespace internal |
4403 } // namespace v8 | 4402 } // namespace v8 |
4404 | 4403 |
4405 #endif // V8_TARGET_ARCH_PPC | 4404 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |