| 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 "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 // Loads the type into the second argument register. | 937 // Loads the type into the second argument register. |
| 938 // Returns a condition that will be enabled if the object was a string | 938 // Returns a condition that will be enabled if the object was a string |
| 939 // and the passed-in condition passed. If the passed-in condition failed | 939 // and the passed-in condition passed. If the passed-in condition failed |
| 940 // then flags remain unchanged. | 940 // then flags remain unchanged. |
| 941 Condition IsObjectStringType(Register obj, | 941 Condition IsObjectStringType(Register obj, |
| 942 Register type, | 942 Register type, |
| 943 Condition cond = al) { | 943 Condition cond = al) { |
| 944 ldr(type, FieldMemOperand(obj, HeapObject::kMapOffset), cond); | 944 ldr(type, FieldMemOperand(obj, HeapObject::kMapOffset), cond); |
| 945 ldrb(type, FieldMemOperand(type, Map::kInstanceTypeOffset), cond); | 945 ldrb(type, FieldMemOperand(type, Map::kInstanceTypeOffset), cond); |
| 946 tst(type, Operand(kIsNotStringMask), cond); | 946 tst(type, Operand(kIsNotStringMask), cond); |
| 947 DCHECK_EQ(0, kStringTag); | 947 DCHECK_EQ(0u, kStringTag); |
| 948 return eq; | 948 return eq; |
| 949 } | 949 } |
| 950 | 950 |
| 951 | 951 |
| 952 // Picks out an array index from the hash field. | 952 // Picks out an array index from the hash field. |
| 953 // Register use: | 953 // Register use: |
| 954 // hash - holds the index's hash. Clobbered. | 954 // hash - holds the index's hash. Clobbered. |
| 955 // index - holds the overwritten index on exit. | 955 // index - holds the overwritten index on exit. |
| 956 void IndexFromHash(Register hash, Register index); | 956 void IndexFromHash(Register hash, Register index); |
| 957 | 957 |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1542 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1543 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1543 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1544 #else | 1544 #else |
| 1545 #define ACCESS_MASM(masm) masm-> | 1545 #define ACCESS_MASM(masm) masm-> |
| 1546 #endif | 1546 #endif |
| 1547 | 1547 |
| 1548 | 1548 |
| 1549 } } // namespace v8::internal | 1549 } } // namespace v8::internal |
| 1550 | 1550 |
| 1551 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1551 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |