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 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1347 | 1347 |
1348 // Activation support. | 1348 // Activation support. |
1349 void EnterFrame(StackFrame::Type type); | 1349 void EnterFrame(StackFrame::Type type); |
1350 void LeaveFrame(StackFrame::Type type); | 1350 void LeaveFrame(StackFrame::Type type); |
1351 | 1351 |
1352 // Expects object in rax and returns map with validated enum cache | 1352 // Expects object in rax and returns map with validated enum cache |
1353 // in rax. Assumes that any other register can be used as a scratch. | 1353 // in rax. Assumes that any other register can be used as a scratch. |
1354 void CheckEnumCache(Register null_value, | 1354 void CheckEnumCache(Register null_value, |
1355 Label* call_runtime); | 1355 Label* call_runtime); |
1356 | 1356 |
1357 // AllocationSiteInfo support. Arrays may have an associated | 1357 // AllocationMemento support. Arrays may have an associated |
1358 // AllocationSiteInfo object that can be checked for in order to pretransition | 1358 // AllocationMemento object that can be checked for in order to pretransition |
1359 // to another type. | 1359 // to another type. |
1360 // On entry, receiver_reg should point to the array object. | 1360 // On entry, receiver_reg should point to the array object. |
1361 // scratch_reg gets clobbered. | 1361 // scratch_reg gets clobbered. |
1362 // If allocation info is present, condition flags are set to equal | 1362 // If allocation info is present, condition flags are set to equal |
1363 void TestJSArrayForAllocationSiteInfo(Register receiver_reg, | 1363 void TestJSArrayForAllocationMemento(Register receiver_reg, |
1364 Register scratch_reg); | 1364 Register scratch_reg); |
1365 | 1365 |
1366 private: | 1366 private: |
1367 // Order general registers are pushed by Pushad. | 1367 // Order general registers are pushed by Pushad. |
1368 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. | 1368 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. |
1369 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; | 1369 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; |
1370 static const int kNumSafepointSavedRegisters = 11; | 1370 static const int kNumSafepointSavedRegisters = 11; |
1371 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; | 1371 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; |
1372 | 1372 |
1373 bool generating_stub_; | 1373 bool generating_stub_; |
1374 bool allow_stub_calls_; | 1374 bool allow_stub_calls_; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 masm->popfq(); \ | 1535 masm->popfq(); \ |
1536 } \ | 1536 } \ |
1537 masm-> | 1537 masm-> |
1538 #else | 1538 #else |
1539 #define ACCESS_MASM(masm) masm-> | 1539 #define ACCESS_MASM(masm) masm-> |
1540 #endif | 1540 #endif |
1541 | 1541 |
1542 } } // namespace v8::internal | 1542 } } // namespace v8::internal |
1543 | 1543 |
1544 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1544 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |