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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1082 | 1082 |
1083 // Check if the map of an object is equal to a specified map and branch to a | 1083 // Check if the map of an object is equal to a specified map and branch to a |
1084 // specified target if equal. Skip the smi check if not required (object is | 1084 // specified target if equal. Skip the smi check if not required (object is |
1085 // known to be a heap object) | 1085 // known to be a heap object) |
1086 void DispatchMap(Register obj, | 1086 void DispatchMap(Register obj, |
1087 Register scratch, | 1087 Register scratch, |
1088 Handle<Map> map, | 1088 Handle<Map> map, |
1089 Handle<Code> success, | 1089 Handle<Code> success, |
1090 SmiCheckType smi_check_type); | 1090 SmiCheckType smi_check_type); |
1091 | 1091 |
1092 // Compare the given value and the value of the weak cell. Write the result | 1092 // Get value of the weak cell. |
1093 // to the match register. | 1093 void GetWeakValue(Register value, Handle<WeakCell> cell); |
1094 void CmpWeakValue(Register match, Register value, Handle<WeakCell> cell); | |
1095 | 1094 |
1096 // Load the value of the weak cell in the value register. Branch to the | 1095 // Load the value of the weak cell in the value register. Branch to the |
1097 // given miss label is the weak cell was cleared. | 1096 // given miss label is the weak cell was cleared. |
1098 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 1097 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); |
1099 | 1098 |
1100 // Load and check the instance type of an object for being a string. | 1099 // Load and check the instance type of an object for being a string. |
1101 // Loads the type into the second argument register. | 1100 // Loads the type into the second argument register. |
1102 // Returns a condition that will be enabled if the object was a string. | 1101 // Returns a condition that will be enabled if the object was a string. |
1103 Condition IsObjectStringType(Register obj, | 1102 Condition IsObjectStringType(Register obj, |
1104 Register type, | 1103 Register type, |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1726 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1725 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1727 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1726 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1728 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1727 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1729 #else | 1728 #else |
1730 #define ACCESS_MASM(masm) masm-> | 1729 #define ACCESS_MASM(masm) masm-> |
1731 #endif | 1730 #endif |
1732 | 1731 |
1733 } } // namespace v8::internal | 1732 } } // namespace v8::internal |
1734 | 1733 |
1735 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1734 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |