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 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 Register new_value); | 1433 Register new_value); |
1434 // Get the relocatad value (loaded data) from the lui/ori pair. | 1434 // Get the relocatad value (loaded data) from the lui/ori pair. |
1435 void GetRelocatedValue(Register li_location, | 1435 void GetRelocatedValue(Register li_location, |
1436 Register value, | 1436 Register value, |
1437 Register scratch); | 1437 Register scratch); |
1438 | 1438 |
1439 // Expects object in a0 and returns map with validated enum cache | 1439 // Expects object in a0 and returns map with validated enum cache |
1440 // in a0. Assumes that any other register can be used as a scratch. | 1440 // in a0. Assumes that any other register can be used as a scratch. |
1441 void CheckEnumCache(Register null_value, Label* call_runtime); | 1441 void CheckEnumCache(Register null_value, Label* call_runtime); |
1442 | 1442 |
| 1443 // AllocationSiteInfo support. Arrays may have an associated |
| 1444 // AllocationSiteInfo object that can be checked for in order to pretransition |
| 1445 // to another type. |
| 1446 // On entry, receiver_reg should point to the array object. |
| 1447 // scratch_reg gets clobbered. |
| 1448 // If allocation info is present, jump to allocation_info_present |
| 1449 void TestJSArrayForAllocationSiteInfo(Register receiver_reg, |
| 1450 Register scratch_reg, |
| 1451 Label* allocation_info_present); |
| 1452 |
1443 private: | 1453 private: |
1444 void CallCFunctionHelper(Register function, | 1454 void CallCFunctionHelper(Register function, |
1445 int num_reg_arguments, | 1455 int num_reg_arguments, |
1446 int num_double_arguments); | 1456 int num_double_arguments); |
1447 | 1457 |
1448 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT); | 1458 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT); |
1449 void BranchShort(int16_t offset, Condition cond, Register rs, | 1459 void BranchShort(int16_t offset, Condition cond, Register rs, |
1450 const Operand& rt, | 1460 const Operand& rt, |
1451 BranchDelaySlot bdslot = PROTECT); | 1461 BranchDelaySlot bdslot = PROTECT); |
1452 void BranchShort(Label* L, BranchDelaySlot bdslot = PROTECT); | 1462 void BranchShort(Label* L, BranchDelaySlot bdslot = PROTECT); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1557 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1567 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1558 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1568 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1559 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1569 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1560 #else | 1570 #else |
1561 #define ACCESS_MASM(masm) masm-> | 1571 #define ACCESS_MASM(masm) masm-> |
1562 #endif | 1572 #endif |
1563 | 1573 |
1564 } } // namespace v8::internal | 1574 } } // namespace v8::internal |
1565 | 1575 |
1566 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1576 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |