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 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 | 1346 |
1347 // Patch the relocated value (lui/ori pair). | 1347 // Patch the relocated value (lui/ori pair). |
1348 void PatchRelocatedValue(Register li_location, | 1348 void PatchRelocatedValue(Register li_location, |
1349 Register scratch, | 1349 Register scratch, |
1350 Register new_value); | 1350 Register new_value); |
1351 // Get the relocatad value (loaded data) from the lui/ori pair. | 1351 // Get the relocatad value (loaded data) from the lui/ori pair. |
1352 void GetRelocatedValue(Register li_location, | 1352 void GetRelocatedValue(Register li_location, |
1353 Register value, | 1353 Register value, |
1354 Register scratch); | 1354 Register scratch); |
1355 | 1355 |
| 1356 // Expects object in a0 and returns map with validated enum cache |
| 1357 // in a0. Assumes that any other register can be used as a scratch. |
| 1358 void CheckEnumCache(Register null_value, Label* call_runtime); |
| 1359 |
1356 private: | 1360 private: |
1357 void CallCFunctionHelper(Register function, | 1361 void CallCFunctionHelper(Register function, |
1358 int num_reg_arguments, | 1362 int num_reg_arguments, |
1359 int num_double_arguments); | 1363 int num_double_arguments); |
1360 | 1364 |
1361 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT); | 1365 void BranchShort(int16_t offset, BranchDelaySlot bdslot = PROTECT); |
1362 void BranchShort(int16_t offset, Condition cond, Register rs, | 1366 void BranchShort(int16_t offset, Condition cond, Register rs, |
1363 const Operand& rt, | 1367 const Operand& rt, |
1364 BranchDelaySlot bdslot = PROTECT); | 1368 BranchDelaySlot bdslot = PROTECT); |
1365 void BranchShort(Label* L, BranchDelaySlot bdslot = PROTECT); | 1369 void BranchShort(Label* L, BranchDelaySlot bdslot = PROTECT); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1470 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1474 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1471 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1475 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1472 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1476 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1473 #else | 1477 #else |
1474 #define ACCESS_MASM(masm) masm-> | 1478 #define ACCESS_MASM(masm) masm-> |
1475 #endif | 1479 #endif |
1476 | 1480 |
1477 } } // namespace v8::internal | 1481 } } // namespace v8::internal |
1478 | 1482 |
1479 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1483 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |