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 void CheckDebugHook(Register fun, Register new_target, |
jgruber
2017/01/11 16:12:39
A comment would be great.
Yang
2017/01/12 06:04:51
Done.
| |
394 const ParameterCount& expected, | 394 const ParameterCount& expected, |
395 const ParameterCount& actual); | 395 const ParameterCount& actual); |
396 | 396 |
397 // Invoke the JavaScript function in the given register. Changes the | 397 // Invoke the JavaScript function in the given register. Changes the |
398 // current context to the context in the function before invoking. | 398 // current context to the context in the function before invoking. |
399 void InvokeFunction(Register function, | 399 void InvokeFunction(Register function, |
400 Register new_target, | 400 Register new_target, |
401 const ParameterCount& actual, | 401 const ParameterCount& actual, |
402 InvokeFlag flag, | 402 InvokeFlag flag, |
403 const CallWrapper& call_wrapper); | 403 const CallWrapper& call_wrapper); |
404 | 404 |
405 void InvokeFunction(Register function, | 405 void InvokeFunction(Register function, |
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1682 inline Operand StackOperandForReturnAddress(int32_t disp) { | 1682 inline Operand StackOperandForReturnAddress(int32_t disp) { |
1683 return Operand(rsp, disp); | 1683 return Operand(rsp, disp); |
1684 } | 1684 } |
1685 | 1685 |
1686 #define ACCESS_MASM(masm) masm-> | 1686 #define ACCESS_MASM(masm) masm-> |
1687 | 1687 |
1688 } // namespace internal | 1688 } // namespace internal |
1689 } // namespace v8 | 1689 } // namespace v8 |
1690 | 1690 |
1691 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1691 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |