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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::kFeedbackVectorOffset)); | 1026 LoadP(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset)); |
| 1027 LoadP(vector, FieldMemOperand(vector, Cell::kValueOffset)); |
1027 } | 1028 } |
1028 | 1029 |
1029 | 1030 |
1030 void MacroAssembler::EnterFrame(StackFrame::Type type, | 1031 void MacroAssembler::EnterFrame(StackFrame::Type type, |
1031 bool load_constant_pool_pointer_reg) { | 1032 bool load_constant_pool_pointer_reg) { |
1032 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { | 1033 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { |
1033 // Push type explicitly so we can leverage the constant pool. | 1034 // Push type explicitly so we can leverage the constant pool. |
1034 // This path cannot rely on ip containing code entry. | 1035 // This path cannot rely on ip containing code entry. |
1035 PushCommonFrame(); | 1036 PushCommonFrame(); |
1036 LoadConstantPoolPointerRegister(); | 1037 LoadConstantPoolPointerRegister(); |
(...skipping 3348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4385 } | 4386 } |
4386 if (mag.shift > 0) srawi(result, result, mag.shift); | 4387 if (mag.shift > 0) srawi(result, result, mag.shift); |
4387 ExtractBit(r0, dividend, 31); | 4388 ExtractBit(r0, dividend, 31); |
4388 add(result, result, r0); | 4389 add(result, result, r0); |
4389 } | 4390 } |
4390 | 4391 |
4391 } // namespace internal | 4392 } // namespace internal |
4392 } // namespace v8 | 4393 } // namespace v8 |
4393 | 4394 |
4394 #endif // V8_TARGET_ARCH_PPC | 4395 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |