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/base/flags.h" | 10 #include "src/base/flags.h" |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 | 378 |
379 // --------------------------------------------------------------------------- | 379 // --------------------------------------------------------------------------- |
380 // JavaScript invokes | 380 // JavaScript invokes |
381 | 381 |
382 // Invoke the JavaScript function code by either calling or jumping. | 382 // Invoke the JavaScript function code by either calling or jumping. |
383 void InvokeFunctionCode(Register function, Register new_target, | 383 void InvokeFunctionCode(Register function, Register new_target, |
384 const ParameterCount& expected, | 384 const ParameterCount& expected, |
385 const ParameterCount& actual, InvokeFlag flag, | 385 const ParameterCount& actual, InvokeFlag flag, |
386 const CallWrapper& call_wrapper); | 386 const CallWrapper& call_wrapper); |
387 | 387 |
388 void FloodFunctionIfStepping(Register fun, Register new_target, | |
389 const ParameterCount& expected, | |
390 const ParameterCount& actual); | |
391 | |
392 // Invoke the JavaScript function in the given register. Changes the | 388 // Invoke the JavaScript function in the given register. Changes the |
393 // current context to the context in the function before invoking. | 389 // current context to the context in the function before invoking. |
394 void InvokeFunction(Register function, | 390 void InvokeFunction(Register function, |
395 Register new_target, | 391 Register new_target, |
396 const ParameterCount& actual, | 392 const ParameterCount& actual, |
397 InvokeFlag flag, | 393 InvokeFlag flag, |
398 const CallWrapper& call_wrapper); | 394 const CallWrapper& call_wrapper); |
399 | 395 |
400 void InvokeFunction(Register function, | 396 void InvokeFunction(Register function, |
401 Register new_target, | 397 Register new_target, |
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 | 1597 |
1602 // Helper functions for generating invokes. | 1598 // Helper functions for generating invokes. |
1603 void InvokePrologue(const ParameterCount& expected, | 1599 void InvokePrologue(const ParameterCount& expected, |
1604 const ParameterCount& actual, | 1600 const ParameterCount& actual, |
1605 Label* done, | 1601 Label* done, |
1606 bool* definitely_mismatches, | 1602 bool* definitely_mismatches, |
1607 InvokeFlag flag, | 1603 InvokeFlag flag, |
1608 Label::Distance near_jump, | 1604 Label::Distance near_jump, |
1609 const CallWrapper& call_wrapper); | 1605 const CallWrapper& call_wrapper); |
1610 | 1606 |
| 1607 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 1608 const ParameterCount& expected, |
| 1609 const ParameterCount& actual); |
| 1610 |
1611 void EnterExitFramePrologue(bool save_rax); | 1611 void EnterExitFramePrologue(bool save_rax); |
1612 | 1612 |
1613 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack | 1613 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack |
1614 // accessible via StackSpaceOperand. | 1614 // accessible via StackSpaceOperand. |
1615 void EnterExitFrameEpilogue(int arg_stack_space, bool save_doubles); | 1615 void EnterExitFrameEpilogue(int arg_stack_space, bool save_doubles); |
1616 | 1616 |
1617 void LeaveExitFrameEpilogue(bool restore_context); | 1617 void LeaveExitFrameEpilogue(bool restore_context); |
1618 | 1618 |
1619 // Allocation support helpers. | 1619 // Allocation support helpers. |
1620 // Loads the top of new-space into the result register. | 1620 // Loads the top of new-space into the result register. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1748 } \ | 1748 } \ |
1749 masm-> | 1749 masm-> |
1750 #else | 1750 #else |
1751 #define ACCESS_MASM(masm) masm-> | 1751 #define ACCESS_MASM(masm) masm-> |
1752 #endif | 1752 #endif |
1753 | 1753 |
1754 } // namespace internal | 1754 } // namespace internal |
1755 } // namespace v8 | 1755 } // namespace v8 |
1756 | 1756 |
1757 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1757 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |