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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 | 1308 |
1309 // Activation support. | 1309 // Activation support. |
1310 void EnterFrame(StackFrame::Type type); | 1310 void EnterFrame(StackFrame::Type type); |
1311 void LeaveFrame(StackFrame::Type type); | 1311 void LeaveFrame(StackFrame::Type type); |
1312 | 1312 |
1313 // Expects object in rax and returns map with validated enum cache | 1313 // Expects object in rax and returns map with validated enum cache |
1314 // in rax. Assumes that any other register can be used as a scratch. | 1314 // in rax. Assumes that any other register can be used as a scratch. |
1315 void CheckEnumCache(Register null_value, | 1315 void CheckEnumCache(Register null_value, |
1316 Label* call_runtime); | 1316 Label* call_runtime); |
1317 | 1317 |
| 1318 // AllocationSiteInfo support. Arrays may have an associated |
| 1319 // AllocationSiteInfo object that can be checked for in order to pretransition |
| 1320 // to another type. |
| 1321 // On entry, receiver_reg should point to the array object. |
| 1322 // scratch_reg gets clobbered. |
| 1323 // If allocation info is present, jump to allocation_info_present |
| 1324 void TestJSArrayForAllocationSiteInfo(Register receiver_reg, |
| 1325 Register scratch_reg, |
| 1326 Label* allocation_info_present); |
| 1327 |
1318 private: | 1328 private: |
1319 // Order general registers are pushed by Pushad. | 1329 // Order general registers are pushed by Pushad. |
1320 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. | 1330 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. |
1321 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; | 1331 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; |
1322 static const int kNumSafepointSavedRegisters = 11; | 1332 static const int kNumSafepointSavedRegisters = 11; |
1323 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; | 1333 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; |
1324 | 1334 |
1325 bool generating_stub_; | 1335 bool generating_stub_; |
1326 bool allow_stub_calls_; | 1336 bool allow_stub_calls_; |
1327 bool has_frame_; | 1337 bool has_frame_; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1484 masm->popfq(); \ | 1494 masm->popfq(); \ |
1485 } \ | 1495 } \ |
1486 masm-> | 1496 masm-> |
1487 #else | 1497 #else |
1488 #define ACCESS_MASM(masm) masm-> | 1498 #define ACCESS_MASM(masm) masm-> |
1489 #endif | 1499 #endif |
1490 | 1500 |
1491 } } // namespace v8::internal | 1501 } } // namespace v8::internal |
1492 | 1502 |
1493 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1503 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |