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