| 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 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 | 1266 |
| 1267 void ClampDoubleToUint8(Register result_reg, | 1267 void ClampDoubleToUint8(Register result_reg, |
| 1268 DoubleRegister input_reg, | 1268 DoubleRegister input_reg, |
| 1269 DoubleRegister temp_double_reg); | 1269 DoubleRegister temp_double_reg); |
| 1270 | 1270 |
| 1271 | 1271 |
| 1272 void LoadInstanceDescriptors(Register map, | 1272 void LoadInstanceDescriptors(Register map, |
| 1273 Register descriptors, | 1273 Register descriptors, |
| 1274 Register scratch); | 1274 Register scratch); |
| 1275 void EnumLength(Register dst, Register map); | 1275 void EnumLength(Register dst, Register map); |
| 1276 void NumberOfOwnDescriptors(Register dst, Register map); | |
| 1277 | |
| 1278 template<typename Field> | |
| 1279 void DecodeField(Register reg) { | |
| 1280 static const int shift = Field::kShift; | |
| 1281 static const int mask = (Field::kMask >> shift) << kSmiTagSize; | |
| 1282 mov(reg, Operand(reg, LSR, shift)); | |
| 1283 and_(reg, reg, Operand(mask)); | |
| 1284 } | |
| 1285 | 1276 |
| 1286 // Activation support. | 1277 // Activation support. |
| 1287 void EnterFrame(StackFrame::Type type); | 1278 void EnterFrame(StackFrame::Type type); |
| 1288 void LeaveFrame(StackFrame::Type type); | 1279 void LeaveFrame(StackFrame::Type type); |
| 1289 | 1280 |
| 1290 // Expects object in r0 and returns map with validated enum cache | 1281 // Expects object in r0 and returns map with validated enum cache |
| 1291 // in r0. Assumes that any other register can be used as a scratch. | 1282 // in r0. Assumes that any other register can be used as a scratch. |
| 1292 void CheckEnumCache(Register null_value, Label* call_runtime); | 1283 void CheckEnumCache(Register null_value, Label* call_runtime); |
| 1293 | 1284 |
| 1294 private: | 1285 private: |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1399 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1390 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1400 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1391 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1401 #else | 1392 #else |
| 1402 #define ACCESS_MASM(masm) masm-> | 1393 #define ACCESS_MASM(masm) masm-> |
| 1403 #endif | 1394 #endif |
| 1404 | 1395 |
| 1405 | 1396 |
| 1406 } } // namespace v8::internal | 1397 } } // namespace v8::internal |
| 1407 | 1398 |
| 1408 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1399 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |