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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 if (FLAG_enable_embedded_constant_pool) { | 1040 if (FLAG_enable_embedded_constant_pool) { |
1041 // base contains prologue address | 1041 // base contains prologue address |
1042 LoadConstantPoolPointerRegister(base, -prologue_offset); | 1042 LoadConstantPoolPointerRegister(base, -prologue_offset); |
1043 set_constant_pool_available(true); | 1043 set_constant_pool_available(true); |
1044 } | 1044 } |
1045 } | 1045 } |
1046 | 1046 |
1047 | 1047 |
1048 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 1048 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
1049 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1049 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1050 LoadP(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); | 1050 LoadP(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); |
1051 LoadP(vector, | 1051 LoadP(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); |
1052 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); | |
1053 } | 1052 } |
1054 | 1053 |
1055 | 1054 |
1056 void MacroAssembler::EnterFrame(StackFrame::Type type, | 1055 void MacroAssembler::EnterFrame(StackFrame::Type type, |
1057 bool load_constant_pool_pointer_reg) { | 1056 bool load_constant_pool_pointer_reg) { |
1058 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { | 1057 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { |
1059 // Push type explicitly so we can leverage the constant pool. | 1058 // Push type explicitly so we can leverage the constant pool. |
1060 // This path cannot rely on ip containing code entry. | 1059 // This path cannot rely on ip containing code entry. |
1061 PushCommonFrame(); | 1060 PushCommonFrame(); |
1062 LoadConstantPoolPointerRegister(); | 1061 LoadConstantPoolPointerRegister(); |
(...skipping 3824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4887 } | 4886 } |
4888 if (mag.shift > 0) srawi(result, result, mag.shift); | 4887 if (mag.shift > 0) srawi(result, result, mag.shift); |
4889 ExtractBit(r0, dividend, 31); | 4888 ExtractBit(r0, dividend, 31); |
4890 add(result, result, r0); | 4889 add(result, result, r0); |
4891 } | 4890 } |
4892 | 4891 |
4893 } // namespace internal | 4892 } // namespace internal |
4894 } // namespace v8 | 4893 } // namespace v8 |
4895 | 4894 |
4896 #endif // V8_TARGET_ARCH_PPC | 4895 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |