Chromium Code Reviews| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 358 void InitializeRootRegister() { | 358 void InitializeRootRegister() { |
| 359 ExternalReference roots_array_start = | 359 ExternalReference roots_array_start = |
| 360 ExternalReference::roots_array_start(isolate()); | 360 ExternalReference::roots_array_start(isolate()); |
| 361 Move(kRootRegister, roots_array_start); | 361 Move(kRootRegister, roots_array_start); |
| 362 addp(kRootRegister, Immediate(kRootRegisterBias)); | 362 addp(kRootRegister, Immediate(kRootRegisterBias)); |
| 363 } | 363 } |
| 364 | 364 |
| 365 // --------------------------------------------------------------------------- | 365 // --------------------------------------------------------------------------- |
| 366 // JavaScript invokes | 366 // JavaScript invokes |
| 367 | 367 |
| 368 void DropCurrentJSFrame(Register args, Register scratch1, Register scratch2, | |
|
Benedikt Meurer
2016/01/21 05:20:49
Nit: The name is a bit misleading, since this not
Igor Sheludko
2016/01/21 14:37:08
PrepareForTailCall is a better name. Done.
| |
| 369 Register scratch3); | |
| 370 | |
| 368 // Invoke the JavaScript function code by either calling or jumping. | 371 // Invoke the JavaScript function code by either calling or jumping. |
| 369 void InvokeFunctionCode(Register function, Register new_target, | 372 void InvokeFunctionCode(Register function, Register new_target, |
| 370 const ParameterCount& expected, | 373 const ParameterCount& expected, |
| 371 const ParameterCount& actual, InvokeFlag flag, | 374 const ParameterCount& actual, InvokeFlag flag, |
| 372 const CallWrapper& call_wrapper); | 375 const CallWrapper& call_wrapper); |
| 373 | 376 |
| 374 void FloodFunctionIfStepping(Register fun, Register new_target, | 377 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 375 const ParameterCount& expected, | 378 const ParameterCount& expected, |
| 376 const ParameterCount& actual); | 379 const ParameterCount& actual); |
| 377 | 380 |
| (...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1740 } \ | 1743 } \ |
| 1741 masm-> | 1744 masm-> |
| 1742 #else | 1745 #else |
| 1743 #define ACCESS_MASM(masm) masm-> | 1746 #define ACCESS_MASM(masm) masm-> |
| 1744 #endif | 1747 #endif |
| 1745 | 1748 |
| 1746 } // namespace internal | 1749 } // namespace internal |
| 1747 } // namespace v8 | 1750 } // namespace v8 |
| 1748 | 1751 |
| 1749 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1752 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |