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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 } | 1041 } |
1042 if (FLAG_enable_embedded_constant_pool) { | 1042 if (FLAG_enable_embedded_constant_pool) { |
1043 LoadConstantPoolPointerRegister(); | 1043 LoadConstantPoolPointerRegister(); |
1044 set_constant_pool_available(true); | 1044 set_constant_pool_available(true); |
1045 } | 1045 } |
1046 } | 1046 } |
1047 | 1047 |
1048 | 1048 |
1049 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 1049 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
1050 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1050 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1051 ldr(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); | 1051 ldr(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
1052 ldr(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | 1052 ldr(vector, |
| 1053 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
1053 } | 1054 } |
1054 | 1055 |
1055 | 1056 |
1056 void MacroAssembler::EnterFrame(StackFrame::Type type, | 1057 void MacroAssembler::EnterFrame(StackFrame::Type type, |
1057 bool load_constant_pool_pointer_reg) { | 1058 bool load_constant_pool_pointer_reg) { |
1058 // r0-r3: preserved | 1059 // r0-r3: preserved |
1059 PushFixedFrame(); | 1060 PushFixedFrame(); |
1060 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { | 1061 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { |
1061 LoadConstantPoolPointerRegister(); | 1062 LoadConstantPoolPointerRegister(); |
1062 } | 1063 } |
(...skipping 2543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3606 } | 3607 } |
3607 } | 3608 } |
3608 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); | 3609 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); |
3609 add(result, result, Operand(dividend, LSR, 31)); | 3610 add(result, result, Operand(dividend, LSR, 31)); |
3610 } | 3611 } |
3611 | 3612 |
3612 } // namespace internal | 3613 } // namespace internal |
3613 } // namespace v8 | 3614 } // namespace v8 |
3614 | 3615 |
3615 #endif // V8_TARGET_ARCH_ARM | 3616 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |