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