| 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 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1393 | 1393 |
| 1394 void ClampDoubleToUint8(Register result_reg, | 1394 void ClampDoubleToUint8(Register result_reg, |
| 1395 DoubleRegister input_reg, | 1395 DoubleRegister input_reg, |
| 1396 DoubleRegister temp_double_reg); | 1396 DoubleRegister temp_double_reg); |
| 1397 | 1397 |
| 1398 | 1398 |
| 1399 void LoadInstanceDescriptors(Register map, | 1399 void LoadInstanceDescriptors(Register map, |
| 1400 Register descriptors, | 1400 Register descriptors, |
| 1401 Register scratch); | 1401 Register scratch); |
| 1402 void EnumLength(Register dst, Register map); | 1402 void EnumLength(Register dst, Register map); |
| 1403 void NumberOfOwnDescriptors(Register dst, Register map); | |
| 1404 | 1403 |
| 1405 template<typename Field> | |
| 1406 void DecodeField(Register reg) { | |
| 1407 static const int shift = Field::kShift; | |
| 1408 static const int mask = (Field::kMask >> shift) << kSmiTagSize; | |
| 1409 srl(reg, reg, shift); | |
| 1410 And(reg, reg, Operand(mask)); | |
| 1411 } | |
| 1412 | 1404 |
| 1413 // Activation support. | 1405 // Activation support. |
| 1414 void EnterFrame(StackFrame::Type type); | 1406 void EnterFrame(StackFrame::Type type); |
| 1415 void LeaveFrame(StackFrame::Type type); | 1407 void LeaveFrame(StackFrame::Type type); |
| 1416 | 1408 |
| 1417 // Patch the relocated value (lui/ori pair). | 1409 // Patch the relocated value (lui/ori pair). |
| 1418 void PatchRelocatedValue(Register li_location, | 1410 void PatchRelocatedValue(Register li_location, |
| 1419 Register scratch, | 1411 Register scratch, |
| 1420 Register new_value); | 1412 Register new_value); |
| 1421 // Get the relocatad value (loaded data) from the lui/ori pair. | 1413 // Get the relocatad value (loaded data) from the lui/ori pair. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1544 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1536 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 1545 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1537 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1546 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1538 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1547 #else | 1539 #else |
| 1548 #define ACCESS_MASM(masm) masm-> | 1540 #define ACCESS_MASM(masm) masm-> |
| 1549 #endif | 1541 #endif |
| 1550 | 1542 |
| 1551 } } // namespace v8::internal | 1543 } } // namespace v8::internal |
| 1552 | 1544 |
| 1553 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1545 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |