OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 } | 1194 } |
1195 // Jump if either of the registers contain a non-smi. | 1195 // Jump if either of the registers contain a non-smi. |
1196 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); | 1196 void JumpIfNotBothSmi(Register reg1, Register reg2, Label* on_not_both_smi); |
1197 // Jump if either of the registers contain a smi. | 1197 // Jump if either of the registers contain a smi. |
1198 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); | 1198 void JumpIfEitherSmi(Register reg1, Register reg2, Label* on_either_smi); |
1199 | 1199 |
1200 // Abort execution if argument is a smi. Used in debug code. | 1200 // Abort execution if argument is a smi. Used in debug code. |
1201 void AbortIfSmi(Register object); | 1201 void AbortIfSmi(Register object); |
1202 void AbortIfNotSmi(Register object); | 1202 void AbortIfNotSmi(Register object); |
1203 | 1203 |
| 1204 // Abort execution if argument is not a fixed array. Used in debug code. |
| 1205 void AbortIfNotFixedArray(Register object, Register scratch); |
| 1206 |
1204 // Abort execution if argument is a string. Used in debug code. | 1207 // Abort execution if argument is a string. Used in debug code. |
1205 void AbortIfNotString(Register object); | 1208 void AbortIfNotString(Register object); |
1206 | 1209 |
1207 // Abort execution if argument is not the root value with the given index. | 1210 // Abort execution if argument is not the root value with the given index. |
1208 void AbortIfNotRootValue(Register src, | 1211 void AbortIfNotRootValue(Register src, |
1209 Heap::RootListIndex root_value_index, | 1212 Heap::RootListIndex root_value_index, |
1210 const char* message); | 1213 const char* message); |
1211 | 1214 |
1212 // --------------------------------------------------------------------------- | 1215 // --------------------------------------------------------------------------- |
1213 // HeapNumber utilities | 1216 // HeapNumber utilities |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 Register result); | 1264 Register result); |
1262 | 1265 |
1263 | 1266 |
1264 void ClampUint8(Register output_reg, Register input_reg); | 1267 void ClampUint8(Register output_reg, Register input_reg); |
1265 | 1268 |
1266 void ClampDoubleToUint8(Register result_reg, | 1269 void ClampDoubleToUint8(Register result_reg, |
1267 DoubleRegister input_reg, | 1270 DoubleRegister input_reg, |
1268 DoubleRegister temp_double_reg); | 1271 DoubleRegister temp_double_reg); |
1269 | 1272 |
1270 | 1273 |
1271 void LoadInstanceDescriptors(Register map, Register descriptors); | 1274 void LoadInstanceDescriptors(Register map, |
| 1275 Register descriptors, |
| 1276 Register scratch); |
1272 | 1277 |
1273 // Activation support. | 1278 // Activation support. |
1274 void EnterFrame(StackFrame::Type type); | 1279 void EnterFrame(StackFrame::Type type); |
1275 void LeaveFrame(StackFrame::Type type); | 1280 void LeaveFrame(StackFrame::Type type); |
1276 | 1281 |
1277 // Expects object in r0 and returns map with validated enum cache | 1282 // Expects object in r0 and returns map with validated enum cache |
1278 // in r0. Assumes that any other register can be used as a scratch. | 1283 // in r0. Assumes that any other register can be used as a scratch. |
1279 void CheckEnumCache(Register null_value, Label* call_runtime); | 1284 void CheckEnumCache(Register null_value, Label* call_runtime); |
1280 | 1285 |
1281 private: | 1286 private: |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1386 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1391 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1387 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1392 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1388 #else | 1393 #else |
1389 #define ACCESS_MASM(masm) masm-> | 1394 #define ACCESS_MASM(masm) masm-> |
1390 #endif | 1395 #endif |
1391 | 1396 |
1392 | 1397 |
1393 } } // namespace v8::internal | 1398 } } // namespace v8::internal |
1394 | 1399 |
1395 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1400 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |