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 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1423 } | 1423 } |
1424 if (FLAG_enable_embedded_constant_pool) { | 1424 if (FLAG_enable_embedded_constant_pool) { |
1425 LoadConstantPoolPointerRegister(); | 1425 LoadConstantPoolPointerRegister(); |
1426 set_constant_pool_available(true); | 1426 set_constant_pool_available(true); |
1427 } | 1427 } |
1428 } | 1428 } |
1429 | 1429 |
1430 | 1430 |
1431 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 1431 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
1432 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1432 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1433 ldr(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); | 1433 ldr(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset)); |
1434 ldr(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | |
1435 } | 1434 } |
1436 | 1435 |
1437 | 1436 |
1438 void MacroAssembler::EnterFrame(StackFrame::Type type, | 1437 void MacroAssembler::EnterFrame(StackFrame::Type type, |
1439 bool load_constant_pool_pointer_reg) { | 1438 bool load_constant_pool_pointer_reg) { |
1440 // r0-r3: preserved | 1439 // r0-r3: preserved |
1441 mov(ip, Operand(Smi::FromInt(type))); | 1440 mov(ip, Operand(Smi::FromInt(type))); |
1442 PushCommonFrame(ip); | 1441 PushCommonFrame(ip); |
1443 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { | 1442 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { |
1444 LoadConstantPoolPointerRegister(); | 1443 LoadConstantPoolPointerRegister(); |
(...skipping 2433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3878 } | 3877 } |
3879 } | 3878 } |
3880 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); | 3879 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); |
3881 add(result, result, Operand(dividend, LSR, 31)); | 3880 add(result, result, Operand(dividend, LSR, 31)); |
3882 } | 3881 } |
3883 | 3882 |
3884 } // namespace internal | 3883 } // namespace internal |
3885 } // namespace v8 | 3884 } // namespace v8 |
3886 | 3885 |
3887 #endif // V8_TARGET_ARCH_ARM | 3886 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |