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/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 | 1114 |
1115 // Check if the map of an object is equal to a specified map and branch to a | 1115 // Check if the map of an object is equal to a specified map and branch to a |
1116 // specified target if equal. Skip the smi check if not required (object is | 1116 // specified target if equal. Skip the smi check if not required (object is |
1117 // known to be a heap object) | 1117 // known to be a heap object) |
1118 void DispatchMap(Register obj, | 1118 void DispatchMap(Register obj, |
1119 Register scratch, | 1119 Register scratch, |
1120 Handle<Map> map, | 1120 Handle<Map> map, |
1121 Handle<Code> success, | 1121 Handle<Code> success, |
1122 SmiCheckType smi_check_type); | 1122 SmiCheckType smi_check_type); |
1123 | 1123 |
1124 // Compare the given value and the value of the weak cell. Write the result | |
1125 // to the match register. | |
1126 void CmpWeakValue(Register match, Register value, Handle<WeakCell> cell); | |
1127 | |
1128 // Load the value of the weak cell in the value register. Branch to the | |
1129 // given miss label is the weak cell was cleared. | |
1130 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | |
1131 | 1124 |
1132 // Load and check the instance type of an object for being a string. | 1125 // Load and check the instance type of an object for being a string. |
1133 // Loads the type into the second argument register. | 1126 // Loads the type into the second argument register. |
1134 // Returns a condition that will be enabled if the object was a string. | 1127 // Returns a condition that will be enabled if the object was a string. |
1135 Condition IsObjectStringType(Register obj, | 1128 Condition IsObjectStringType(Register obj, |
1136 Register type, | 1129 Register type, |
1137 Register result) { | 1130 Register result) { |
1138 ld(type, FieldMemOperand(obj, HeapObject::kMapOffset)); | 1131 ld(type, FieldMemOperand(obj, HeapObject::kMapOffset)); |
1139 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); | 1132 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); |
1140 And(type, type, Operand(kIsNotStringMask)); | 1133 And(type, type, Operand(kIsNotStringMask)); |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1794 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1787 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1795 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1788 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1796 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1789 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1797 #else | 1790 #else |
1798 #define ACCESS_MASM(masm) masm-> | 1791 #define ACCESS_MASM(masm) masm-> |
1799 #endif | 1792 #endif |
1800 | 1793 |
1801 } } // namespace v8::internal | 1794 } } // namespace v8::internal |
1802 | 1795 |
1803 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1796 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |