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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 Label* fail, | 1103 Label* fail, |
1104 SmiCheckType smi_check_type); | 1104 SmiCheckType smi_check_type); |
1105 | 1105 |
1106 | 1106 |
1107 void CheckMap(Register obj, | 1107 void CheckMap(Register obj, |
1108 Register scratch, | 1108 Register scratch, |
1109 Heap::RootListIndex index, | 1109 Heap::RootListIndex index, |
1110 Label* fail, | 1110 Label* fail, |
1111 SmiCheckType smi_check_type); | 1111 SmiCheckType smi_check_type); |
1112 | 1112 |
1113 // Check if the map of an object is equal to a specified map and branch to a | 1113 // Check if the map of an object is equal to a specified weak map and branch |
1114 // specified target if equal. Skip the smi check if not required (object is | 1114 // to a specified target if equal. Skip the smi check if not required |
1115 // known to be a heap object) | 1115 // (object is known to be a heap object) |
1116 void DispatchMap(Register obj, | 1116 void DispatchWeakMap(Register obj, Register scratch1, Register scratch2, |
1117 Register scratch, | 1117 Handle<WeakCell> cell, Handle<Code> success, |
1118 Handle<Map> map, | 1118 SmiCheckType smi_check_type); |
1119 Handle<Code> success, | |
1120 SmiCheckType smi_check_type); | |
1121 | 1119 |
1122 // Get value of the weak cell. | 1120 // Get value of the weak cell. |
1123 void GetWeakValue(Register value, Handle<WeakCell> cell); | 1121 void GetWeakValue(Register value, Handle<WeakCell> cell); |
1124 | 1122 |
1125 // Load the value of the weak cell in the value register. Branch to the | 1123 // Load the value of the weak cell in the value register. Branch to the |
1126 // given miss label is the weak cell was cleared. | 1124 // given miss label is the weak cell was cleared. |
1127 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 1125 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); |
1128 | 1126 |
1129 // Load and check the instance type of an object for being a string. | 1127 // Load and check the instance type of an object for being a string. |
1130 // Loads the type into the second argument register. | 1128 // Loads the type into the second argument register. |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1791 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1789 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1792 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1790 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1793 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1791 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1794 #else | 1792 #else |
1795 #define ACCESS_MASM(masm) masm-> | 1793 #define ACCESS_MASM(masm) masm-> |
1796 #endif | 1794 #endif |
1797 | 1795 |
1798 } } // namespace v8::internal | 1796 } } // namespace v8::internal |
1799 | 1797 |
1800 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1798 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |