| 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 Register type, | 923 Register type, |
| 924 Condition cond = al) { | 924 Condition cond = al) { |
| 925 ldr(type, FieldMemOperand(obj, HeapObject::kMapOffset), cond); | 925 ldr(type, FieldMemOperand(obj, HeapObject::kMapOffset), cond); |
| 926 ldrb(type, FieldMemOperand(type, Map::kInstanceTypeOffset), cond); | 926 ldrb(type, FieldMemOperand(type, Map::kInstanceTypeOffset), cond); |
| 927 tst(type, Operand(kIsNotStringMask), cond); | 927 tst(type, Operand(kIsNotStringMask), cond); |
| 928 ASSERT_EQ(0, kStringTag); | 928 ASSERT_EQ(0, kStringTag); |
| 929 return eq; | 929 return eq; |
| 930 } | 930 } |
| 931 | 931 |
| 932 | 932 |
| 933 // Generates code for reporting that an illegal operation has | |
| 934 // occurred. | |
| 935 void IllegalOperation(int num_arguments); | |
| 936 | |
| 937 // Picks out an array index from the hash field. | 933 // Picks out an array index from the hash field. |
| 938 // Register use: | 934 // Register use: |
| 939 // hash - holds the index's hash. Clobbered. | 935 // hash - holds the index's hash. Clobbered. |
| 940 // index - holds the overwritten index on exit. | 936 // index - holds the overwritten index on exit. |
| 941 void IndexFromHash(Register hash, Register index); | 937 void IndexFromHash(Register hash, Register index); |
| 942 | 938 |
| 943 // Get the number of least significant bits from a register | 939 // Get the number of least significant bits from a register |
| 944 void GetLeastBitsFromSmi(Register dst, Register src, int num_least_bits); | 940 void GetLeastBitsFromSmi(Register dst, Register src, int num_least_bits); |
| 945 void GetLeastBitsFromInt32(Register dst, Register src, int mun_least_bits); | 941 void GetLeastBitsFromInt32(Register dst, Register src, int mun_least_bits); |
| 946 | 942 |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1576 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1581 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1577 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1582 #else | 1578 #else |
| 1583 #define ACCESS_MASM(masm) masm-> | 1579 #define ACCESS_MASM(masm) masm-> |
| 1584 #endif | 1580 #endif |
| 1585 | 1581 |
| 1586 | 1582 |
| 1587 } } // namespace v8::internal | 1583 } } // namespace v8::internal |
| 1588 | 1584 |
| 1589 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1585 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |