| 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_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/mips/assembler-mips.h" | 10 #include "src/mips/assembler-mips.h" |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 | 1095 |
| 1096 // Load and check the instance type of an object for being a string. | 1096 // Load and check the instance type of an object for being a string. |
| 1097 // Loads the type into the second argument register. | 1097 // Loads the type into the second argument register. |
| 1098 // Returns a condition that will be enabled if the object was a string. | 1098 // Returns a condition that will be enabled if the object was a string. |
| 1099 Condition IsObjectStringType(Register obj, | 1099 Condition IsObjectStringType(Register obj, |
| 1100 Register type, | 1100 Register type, |
| 1101 Register result) { | 1101 Register result) { |
| 1102 lw(type, FieldMemOperand(obj, HeapObject::kMapOffset)); | 1102 lw(type, FieldMemOperand(obj, HeapObject::kMapOffset)); |
| 1103 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); | 1103 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); |
| 1104 And(type, type, Operand(kIsNotStringMask)); | 1104 And(type, type, Operand(kIsNotStringMask)); |
| 1105 DCHECK_EQ(0, kStringTag); | 1105 DCHECK_EQ(0u, kStringTag); |
| 1106 return eq; | 1106 return eq; |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 | 1109 |
| 1110 // Picks out an array index from the hash field. | 1110 // Picks out an array index from the hash field. |
| 1111 // Register use: | 1111 // Register use: |
| 1112 // hash - holds the index's hash. Clobbered. | 1112 // hash - holds the index's hash. Clobbered. |
| 1113 // index - holds the overwritten index on exit. | 1113 // index - holds the overwritten index on exit. |
| 1114 void IndexFromHash(Register hash, Register index); | 1114 void IndexFromHash(Register hash, Register index); |
| 1115 | 1115 |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1714 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1715 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1715 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1716 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1716 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1717 #else | 1717 #else |
| 1718 #define ACCESS_MASM(masm) masm-> | 1718 #define ACCESS_MASM(masm) masm-> |
| 1719 #endif | 1719 #endif |
| 1720 | 1720 |
| 1721 } } // namespace v8::internal | 1721 } } // namespace v8::internal |
| 1722 | 1722 |
| 1723 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1723 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |