OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 } | 1107 } |
1108 if (FLAG_enable_embedded_constant_pool) { | 1108 if (FLAG_enable_embedded_constant_pool) { |
1109 LoadConstantPoolPointerRegister(); | 1109 LoadConstantPoolPointerRegister(); |
1110 set_constant_pool_available(true); | 1110 set_constant_pool_available(true); |
1111 } | 1111 } |
1112 } | 1112 } |
1113 | 1113 |
1114 | 1114 |
1115 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 1115 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
1116 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1116 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1117 ldr(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); | 1117 ldr(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
1118 ldr(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | 1118 ldr(vector, |
| 1119 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
1119 } | 1120 } |
1120 | 1121 |
1121 | 1122 |
1122 void MacroAssembler::EnterFrame(StackFrame::Type type, | 1123 void MacroAssembler::EnterFrame(StackFrame::Type type, |
1123 bool load_constant_pool_pointer_reg) { | 1124 bool load_constant_pool_pointer_reg) { |
1124 // r0-r3: preserved | 1125 // r0-r3: preserved |
1125 PushFixedFrame(); | 1126 PushFixedFrame(); |
1126 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { | 1127 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { |
1127 LoadConstantPoolPointerRegister(); | 1128 LoadConstantPoolPointerRegister(); |
1128 } | 1129 } |
(...skipping 2543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3672 } | 3673 } |
3673 } | 3674 } |
3674 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); | 3675 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); |
3675 add(result, result, Operand(dividend, LSR, 31)); | 3676 add(result, result, Operand(dividend, LSR, 31)); |
3676 } | 3677 } |
3677 | 3678 |
3678 } // namespace internal | 3679 } // namespace internal |
3679 } // namespace v8 | 3680 } // namespace v8 |
3680 | 3681 |
3681 #endif // V8_TARGET_ARCH_ARM | 3682 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |