OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, | 1455 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, |
1456 &no_memento_found); | 1456 &no_memento_found); |
1457 j(equal, memento_found); | 1457 j(equal, memento_found); |
1458 bind(&no_memento_found); | 1458 bind(&no_memento_found); |
1459 } | 1459 } |
1460 | 1460 |
1461 // Jumps to found label if a prototype map has dictionary elements. | 1461 // Jumps to found label if a prototype map has dictionary elements. |
1462 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, | 1462 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, |
1463 Register scratch1, Label* found); | 1463 Register scratch1, Label* found); |
1464 | 1464 |
| 1465 // OSR needs to adjust locals on the stack down one word over the vector. |
| 1466 void OSRDropVectorFromStack(int unoptimized_slot_count, Register scratch0, |
| 1467 Register scratch1); |
| 1468 |
1465 private: | 1469 private: |
1466 // Order general registers are pushed by Pushad. | 1470 // Order general registers are pushed by Pushad. |
1467 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. | 1471 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r14, r15. |
1468 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; | 1472 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; |
1469 static const int kNumSafepointSavedRegisters = 11; | 1473 static const int kNumSafepointSavedRegisters = 11; |
1470 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; | 1474 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; |
1471 | 1475 |
1472 bool generating_stub_; | 1476 bool generating_stub_; |
1473 bool has_frame_; | 1477 bool has_frame_; |
1474 bool root_array_available_; | 1478 bool root_array_available_; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 masm->popfq(); \ | 1638 masm->popfq(); \ |
1635 } \ | 1639 } \ |
1636 masm-> | 1640 masm-> |
1637 #else | 1641 #else |
1638 #define ACCESS_MASM(masm) masm-> | 1642 #define ACCESS_MASM(masm) masm-> |
1639 #endif | 1643 #endif |
1640 | 1644 |
1641 } } // namespace v8::internal | 1645 } } // namespace v8::internal |
1642 | 1646 |
1643 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1647 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |