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