| 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 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 7 | 7 |
| 8 #include "assembler.h" | 8 #include "assembler.h" |
| 9 #include "frames.h" | 9 #include "frames.h" |
| 10 #include "v8globals.h" | 10 #include "v8globals.h" |
| (...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 void ClampDoubleToUint8(Register result_reg, | 1349 void ClampDoubleToUint8(Register result_reg, |
| 1350 DwVfpRegister input_reg, | 1350 DwVfpRegister input_reg, |
| 1351 LowDwVfpRegister double_scratch); | 1351 LowDwVfpRegister double_scratch); |
| 1352 | 1352 |
| 1353 | 1353 |
| 1354 void LoadInstanceDescriptors(Register map, Register descriptors); | 1354 void LoadInstanceDescriptors(Register map, Register descriptors); |
| 1355 void EnumLength(Register dst, Register map); | 1355 void EnumLength(Register dst, Register map); |
| 1356 void NumberOfOwnDescriptors(Register dst, Register map); | 1356 void NumberOfOwnDescriptors(Register dst, Register map); |
| 1357 | 1357 |
| 1358 template<typename Field> | 1358 template<typename Field> |
| 1359 void DecodeField(Register reg) { | 1359 void DecodeField(Register dst, Register src) { |
| 1360 static const int shift = Field::kShift; | 1360 static const int shift = Field::kShift; |
| 1361 static const int mask = Field::kMask >> shift; | 1361 static const int mask = Field::kMask >> shift; |
| 1362 mov(reg, Operand(reg, LSR, shift)); | 1362 static const int size = Field::kSize; |
| 1363 and_(reg, reg, Operand(mask)); | 1363 mov(dst, Operand(src, LSR, shift)); |
| 1364 if (shift + size != 32) { |
| 1365 and_(dst, dst, Operand(mask)); |
| 1366 } |
| 1367 } |
| 1368 |
| 1369 template<typename Field> |
| 1370 void DecodeField(Register reg) { |
| 1371 DecodeField<Field>(reg, reg); |
| 1364 } | 1372 } |
| 1365 | 1373 |
| 1366 // Activation support. | 1374 // Activation support. |
| 1367 void EnterFrame(StackFrame::Type type, bool load_constant_pool = false); | 1375 void EnterFrame(StackFrame::Type type, bool load_constant_pool = false); |
| 1368 // Returns the pc offset at which the frame ends. | 1376 // Returns the pc offset at which the frame ends. |
| 1369 int LeaveFrame(StackFrame::Type type); | 1377 int LeaveFrame(StackFrame::Type type); |
| 1370 | 1378 |
| 1371 // Expects object in r0 and returns map with validated enum cache | 1379 // Expects object in r0 and returns map with validated enum cache |
| 1372 // in r0. Assumes that any other register can be used as a scratch. | 1380 // in r0. Assumes that any other register can be used as a scratch. |
| 1373 void CheckEnumCache(Register null_value, Label* call_runtime); | 1381 void CheckEnumCache(Register null_value, Label* call_runtime); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1577 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1585 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1578 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1586 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1579 #else | 1587 #else |
| 1580 #define ACCESS_MASM(masm) masm-> | 1588 #define ACCESS_MASM(masm) masm-> |
| 1581 #endif | 1589 #endif |
| 1582 | 1590 |
| 1583 | 1591 |
| 1584 } } // namespace v8::internal | 1592 } } // namespace v8::internal |
| 1585 | 1593 |
| 1586 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1594 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |