| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 // JavaScript invokes | 368 // JavaScript invokes |
| 369 | 369 |
| 370 // Invoke the JavaScript function code by either calling or jumping. | 370 // Invoke the JavaScript function code by either calling or jumping. |
| 371 void InvokeFunctionCode(Register function, Register new_target, | 371 void InvokeFunctionCode(Register function, Register new_target, |
| 372 const ParameterCount& expected, | 372 const ParameterCount& expected, |
| 373 const ParameterCount& actual, InvokeFlag flag, | 373 const ParameterCount& actual, InvokeFlag flag, |
| 374 const CallWrapper& call_wrapper); | 374 const CallWrapper& call_wrapper); |
| 375 | 375 |
| 376 // Invoke the JavaScript function in the given register. Changes the | 376 // Invoke the JavaScript function in the given register. Changes the |
| 377 // current context to the context in the function before invoking. | 377 // current context to the context in the function before invoking. |
| 378 void InvokeFunction(Register function, | 378 void InvokeFunction(Register function, Register new_target, |
| 379 Register new_target, | 379 const ParameterCount& actual, InvokeFlag flag, |
| 380 const ParameterCount& actual, | |
| 381 InvokeFlag flag, | |
| 382 const CallWrapper& call_wrapper); | 380 const CallWrapper& call_wrapper); |
| 383 | 381 |
| 384 void InvokeFunction(Register function, | 382 void InvokeFunction(Register function, Register new_target, |
| 385 Register new_target, | |
| 386 const ParameterCount& expected, | 383 const ParameterCount& expected, |
| 387 const ParameterCount& actual, | 384 const ParameterCount& actual, InvokeFlag flag, |
| 388 InvokeFlag flag, | |
| 389 const CallWrapper& call_wrapper); | 385 const CallWrapper& call_wrapper); |
| 390 | 386 |
| 391 void InvokeFunction(Handle<JSFunction> function, | 387 void InvokeFunction(Handle<JSFunction> function, |
| 392 const ParameterCount& expected, | 388 const ParameterCount& expected, |
| 393 const ParameterCount& actual, | 389 const ParameterCount& actual, |
| 394 InvokeFlag flag, | 390 InvokeFlag flag, |
| 395 const CallWrapper& call_wrapper); | 391 const CallWrapper& call_wrapper); |
| 396 | 392 |
| 397 // Invoke specified builtin JavaScript function. | 393 // Invoke specified builtin JavaScript function. |
| 398 void InvokeBuiltin(int native_context_index, InvokeFlag flag, | 394 void InvokeBuiltin(int native_context_index, InvokeFlag flag, |
| (...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 int64_t RootRegisterDelta(ExternalReference other); | 1574 int64_t RootRegisterDelta(ExternalReference other); |
| 1579 | 1575 |
| 1580 // Moves the smi value to the destination register. | 1576 // Moves the smi value to the destination register. |
| 1581 void LoadSmiConstant(Register dst, Smi* value); | 1577 void LoadSmiConstant(Register dst, Smi* value); |
| 1582 | 1578 |
| 1583 // This handle will be patched with the code object on installation. | 1579 // This handle will be patched with the code object on installation. |
| 1584 Handle<Object> code_object_; | 1580 Handle<Object> code_object_; |
| 1585 | 1581 |
| 1586 // Helper functions for generating invokes. | 1582 // Helper functions for generating invokes. |
| 1587 void InvokePrologue(const ParameterCount& expected, | 1583 void InvokePrologue(const ParameterCount& expected, |
| 1588 const ParameterCount& actual, | 1584 const ParameterCount& actual, Label* done, |
| 1589 Label* done, | 1585 bool* definitely_mismatches, InvokeFlag flag, |
| 1590 bool* definitely_mismatches, | |
| 1591 InvokeFlag flag, | |
| 1592 Label::Distance near_jump, | 1586 Label::Distance near_jump, |
| 1593 const CallWrapper& call_wrapper); | 1587 const CallWrapper& call_wrapper); |
| 1594 | 1588 |
| 1595 void FloodFunctionIfStepping(Register fun, Register new_target, | 1589 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 1596 const ParameterCount& expected, | 1590 const ParameterCount& expected, |
| 1597 const ParameterCount& actual); | 1591 const ParameterCount& actual); |
| 1598 | 1592 |
| 1599 void EnterExitFramePrologue(bool save_rax); | 1593 void EnterExitFramePrologue(bool save_rax); |
| 1600 | 1594 |
| 1601 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack | 1595 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1736 } \ | 1730 } \ |
| 1737 masm-> | 1731 masm-> |
| 1738 #else | 1732 #else |
| 1739 #define ACCESS_MASM(masm) masm-> | 1733 #define ACCESS_MASM(masm) masm-> |
| 1740 #endif | 1734 #endif |
| 1741 | 1735 |
| 1742 } // namespace internal | 1736 } // namespace internal |
| 1743 } // namespace v8 | 1737 } // namespace v8 |
| 1744 | 1738 |
| 1745 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1739 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |