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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 void PrepareForTailCall(const ParameterCount& callee_args_count, | 383 void PrepareForTailCall(const ParameterCount& callee_args_count, |
384 Register caller_args_count_reg, Register scratch0, | 384 Register caller_args_count_reg, Register scratch0, |
385 Register scratch1, ReturnAddressState ra_state); | 385 Register scratch1, ReturnAddressState ra_state); |
386 | 386 |
387 // Invoke the JavaScript function code by either calling or jumping. | 387 // Invoke the JavaScript function code by either calling or jumping. |
388 void InvokeFunctionCode(Register function, Register new_target, | 388 void InvokeFunctionCode(Register function, Register new_target, |
389 const ParameterCount& expected, | 389 const ParameterCount& expected, |
390 const ParameterCount& actual, InvokeFlag flag, | 390 const ParameterCount& actual, InvokeFlag flag, |
391 const CallWrapper& call_wrapper); | 391 const CallWrapper& call_wrapper); |
392 | 392 |
393 void FloodFunctionIfStepping(Register fun, Register new_target, | 393 // On function call, call into the debugger if necessary. |
394 const ParameterCount& expected, | 394 void CheckDebugHook(Register fun, Register new_target, |
395 const ParameterCount& actual); | 395 const ParameterCount& expected, |
| 396 const ParameterCount& actual); |
396 | 397 |
397 // Invoke the JavaScript function in the given register. Changes the | 398 // Invoke the JavaScript function in the given register. Changes the |
398 // current context to the context in the function before invoking. | 399 // current context to the context in the function before invoking. |
399 void InvokeFunction(Register function, | 400 void InvokeFunction(Register function, |
400 Register new_target, | 401 Register new_target, |
401 const ParameterCount& actual, | 402 const ParameterCount& actual, |
402 InvokeFlag flag, | 403 InvokeFlag flag, |
403 const CallWrapper& call_wrapper); | 404 const CallWrapper& call_wrapper); |
404 | 405 |
405 void InvokeFunction(Register function, | 406 void InvokeFunction(Register function, |
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 inline Operand StackOperandForReturnAddress(int32_t disp) { | 1683 inline Operand StackOperandForReturnAddress(int32_t disp) { |
1683 return Operand(rsp, disp); | 1684 return Operand(rsp, disp); |
1684 } | 1685 } |
1685 | 1686 |
1686 #define ACCESS_MASM(masm) masm-> | 1687 #define ACCESS_MASM(masm) masm-> |
1687 | 1688 |
1688 } // namespace internal | 1689 } // namespace internal |
1689 } // namespace v8 | 1690 } // namespace v8 |
1690 | 1691 |
1691 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1692 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |