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 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 Register new_value); | 1453 Register new_value); |
1454 // Get the relocatad value (loaded data) from the lui/ori pair. | 1454 // Get the relocatad value (loaded data) from the lui/ori pair. |
1455 void GetRelocatedValue(Register li_location, | 1455 void GetRelocatedValue(Register li_location, |
1456 Register value, | 1456 Register value, |
1457 Register scratch); | 1457 Register scratch); |
1458 | 1458 |
1459 // Expects object in a0 and returns map with validated enum cache | 1459 // Expects object in a0 and returns map with validated enum cache |
1460 // in a0. Assumes that any other register can be used as a scratch. | 1460 // in a0. Assumes that any other register can be used as a scratch. |
1461 void CheckEnumCache(Register null_value, Label* call_runtime); | 1461 void CheckEnumCache(Register null_value, Label* call_runtime); |
1462 | 1462 |
1463 // AllocationSiteInfo support. Arrays may have an associated | 1463 // AllocationMemento support. Arrays may have an associated |
1464 // AllocationSiteInfo object that can be checked for in order to pretransition | 1464 // AllocationMemento object that can be checked for in order to pretransition |
1465 // to another type. | 1465 // to another type. |
1466 // On entry, receiver_reg should point to the array object. | 1466 // On entry, receiver_reg should point to the array object. |
1467 // scratch_reg gets clobbered. | 1467 // scratch_reg gets clobbered. |
1468 // If allocation info is present, jump to allocation_info_present | 1468 // If allocation info is present, jump to allocation_info_present |
1469 void TestJSArrayForAllocationSiteInfo(Register receiver_reg, | 1469 void TestJSArrayForAllocationMemento(Register receiver_reg, |
1470 Register scratch_reg, | 1470 Register scratch_reg, |
1471 Condition cond, | 1471 Condition cond, |
1472 Label* allocation_info_present); | 1472 Label* allocation_memento_present); |
1473 | 1473 |
1474 private: | 1474 private: |
1475 void CallCFunctionHelper(Register function, | 1475 void CallCFunctionHelper(Register function, |
1476 int num_reg_arguments, | 1476 int num_reg_arguments, |
1477 int num_double_arguments); | 1477 int num_double_arguments); |
1478 | 1478 |
1479 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT); | 1479 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT); |
1480 void BranchShort(int16_t offset, Condition cond, Register rs, | 1480 void BranchShort(int16_t offset, Condition cond, Register rs, |
1481 const Operand& rt, | 1481 const Operand& rt, |
1482 BranchDelaySlot bdslot = PROTECT); | 1482 BranchDelaySlot bdslot = PROTECT); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1587 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1588 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1588 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1589 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1589 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1590 #else | 1590 #else |
1591 #define ACCESS_MASM(masm) masm-> | 1591 #define ACCESS_MASM(masm) masm-> |
1592 #endif | 1592 #endif |
1593 | 1593 |
1594 } } // namespace v8::internal | 1594 } } // namespace v8::internal |
1595 | 1595 |
1596 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1596 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |