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 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, | 1447 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, |
1448 &no_memento_found); | 1448 &no_memento_found); |
1449 j(equal, memento_found); | 1449 j(equal, memento_found); |
1450 bind(&no_memento_found); | 1450 bind(&no_memento_found); |
1451 } | 1451 } |
1452 | 1452 |
1453 // Jumps to found label if a prototype map has dictionary elements. | 1453 // Jumps to found label if a prototype map has dictionary elements. |
1454 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, | 1454 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, |
1455 Register scratch1, Label* found); | 1455 Register scratch1, Label* found); |
1456 | 1456 |
| 1457 // OSR needs to adjust locals on the stack down one word over the vector. |
| 1458 void AdaptUnoptimizedFrameForOsrEntry(int unoptimized_slot_count, |
| 1459 Register scratch0, Register scratch1); |
| 1460 |
1457 private: | 1461 private: |
1458 // Order general registers are pushed by Pushad. | 1462 // Order general registers are pushed by Pushad. |
1459 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r12, r14, r15. | 1463 // rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r12, r14, r15. |
1460 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; | 1464 static const int kSafepointPushRegisterIndices[Register::kNumRegisters]; |
1461 static const int kNumSafepointSavedRegisters = 12; | 1465 static const int kNumSafepointSavedRegisters = 12; |
1462 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; | 1466 static const int kSmiShift = kSmiTagSize + kSmiShiftSize; |
1463 | 1467 |
1464 bool generating_stub_; | 1468 bool generating_stub_; |
1465 bool has_frame_; | 1469 bool has_frame_; |
1466 bool root_array_available_; | 1470 bool root_array_available_; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1622 masm->popfq(); \ | 1626 masm->popfq(); \ |
1623 } \ | 1627 } \ |
1624 masm-> | 1628 masm-> |
1625 #else | 1629 #else |
1626 #define ACCESS_MASM(masm) masm-> | 1630 #define ACCESS_MASM(masm) masm-> |
1627 #endif | 1631 #endif |
1628 | 1632 |
1629 } } // namespace v8::internal | 1633 } } // namespace v8::internal |
1630 | 1634 |
1631 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1635 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |