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); |
1403 | 1404 |
| 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 } |
1404 | 1412 |
1405 // Activation support. | 1413 // Activation support. |
1406 void EnterFrame(StackFrame::Type type); | 1414 void EnterFrame(StackFrame::Type type); |
1407 void LeaveFrame(StackFrame::Type type); | 1415 void LeaveFrame(StackFrame::Type type); |
1408 | 1416 |
1409 // Patch the relocated value (lui/ori pair). | 1417 // Patch the relocated value (lui/ori pair). |
1410 void PatchRelocatedValue(Register li_location, | 1418 void PatchRelocatedValue(Register li_location, |
1411 Register scratch, | 1419 Register scratch, |
1412 Register new_value); | 1420 Register new_value); |
1413 // Get the relocatad value (loaded data) from the lui/ori pair. | 1421 // Get the relocatad value (loaded data) from the lui/ori pair. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1544 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1537 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1545 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1538 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1546 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1539 #else | 1547 #else |
1540 #define ACCESS_MASM(masm) masm-> | 1548 #define ACCESS_MASM(masm) masm-> |
1541 #endif | 1549 #endif |
1542 | 1550 |
1543 } } // namespace v8::internal | 1551 } } // namespace v8::internal |
1544 | 1552 |
1545 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1553 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |