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); | |
1101 | 1094 |
1102 // Load and check the instance type of an object for being a string. | 1095 // Load and check the instance type of an object for being a string. |
1103 // Loads the type into the second argument register. | 1096 // Loads the type into the second argument register. |
1104 // Returns a condition that will be enabled if the object was a string. | 1097 // Returns a condition that will be enabled if the object was a string. |
1105 Condition IsObjectStringType(Register obj, | 1098 Condition IsObjectStringType(Register obj, |
1106 Register type, | 1099 Register type, |
1107 Register result) { | 1100 Register result) { |
1108 lw(type, FieldMemOperand(obj, HeapObject::kMapOffset)); | 1101 lw(type, FieldMemOperand(obj, HeapObject::kMapOffset)); |
1109 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); | 1102 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); |
1110 And(type, type, Operand(kIsNotStringMask)); | 1103 And(type, type, Operand(kIsNotStringMask)); |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1728 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1721 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1729 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1722 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1730 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1723 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1731 #else | 1724 #else |
1732 #define ACCESS_MASM(masm) masm-> | 1725 #define ACCESS_MASM(masm) masm-> |
1733 #endif | 1726 #endif |
1734 | 1727 |
1735 } } // namespace v8::internal | 1728 } } // namespace v8::internal |
1736 | 1729 |
1737 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1730 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |