| 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_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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/frames.h" | 10 #include "src/frames.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 | 352 |
| 353 // --------------------------------------------------------------------------- | 353 // --------------------------------------------------------------------------- |
| 354 // JavaScript invokes | 354 // JavaScript invokes |
| 355 | 355 |
| 356 // Invoke the JavaScript function code by either calling or jumping. | 356 // Invoke the JavaScript function code by either calling or jumping. |
| 357 void InvokeCode(Register code, | 357 void InvokeCode(Register code, |
| 358 const ParameterCount& expected, | 358 const ParameterCount& expected, |
| 359 const ParameterCount& actual, | 359 const ParameterCount& actual, |
| 360 InvokeFlag flag, | 360 InvokeFlag flag, |
| 361 const CallWrapper& call_wrapper) { | 361 const CallWrapper& call_wrapper) { |
| 362 InvokeCode(Operand(code), expected, actual, flag, call_wrapper); | 362 InvokeCode(Operand(code), no_reg, expected, actual, flag, call_wrapper); |
| 363 } | 363 } |
| 364 | 364 |
| 365 void InvokeCode(const Operand& code, | 365 void InvokeCode(const Operand& code, |
| 366 Register new_target, |
| 366 const ParameterCount& expected, | 367 const ParameterCount& expected, |
| 367 const ParameterCount& actual, | 368 const ParameterCount& actual, |
| 368 InvokeFlag flag, | 369 InvokeFlag flag, |
| 369 const CallWrapper& call_wrapper); | 370 const CallWrapper& call_wrapper); |
| 370 | 371 |
| 371 // Invoke the JavaScript function in the given register. Changes the | 372 // Invoke the JavaScript function in the given register. Changes the |
| 372 // current context to the context in the function before invoking. | 373 // current context to the context in the function before invoking. |
| 373 void InvokeFunction(Register function, | 374 void InvokeFunction(Register function, |
| 375 Register new_target, |
| 374 const ParameterCount& actual, | 376 const ParameterCount& actual, |
| 375 InvokeFlag flag, | 377 InvokeFlag flag, |
| 376 const CallWrapper& call_wrapper); | 378 const CallWrapper& call_wrapper); |
| 377 | 379 |
| 378 void InvokeFunction(Register function, | 380 void InvokeFunction(Register function, |
| 379 const ParameterCount& expected, | 381 const ParameterCount& expected, |
| 380 const ParameterCount& actual, | 382 const ParameterCount& actual, |
| 381 InvokeFlag flag, | 383 InvokeFlag flag, |
| 382 const CallWrapper& call_wrapper); | 384 const CallWrapper& call_wrapper); |
| 383 | 385 |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 // This handle will be patched with the code object on installation. | 1005 // This handle will be patched with the code object on installation. |
| 1004 Handle<Object> code_object_; | 1006 Handle<Object> code_object_; |
| 1005 | 1007 |
| 1006 // Helper functions for generating invokes. | 1008 // Helper functions for generating invokes. |
| 1007 void InvokePrologue(const ParameterCount& expected, | 1009 void InvokePrologue(const ParameterCount& expected, |
| 1008 const ParameterCount& actual, | 1010 const ParameterCount& actual, |
| 1009 Label* done, | 1011 Label* done, |
| 1010 bool* definitely_mismatches, | 1012 bool* definitely_mismatches, |
| 1011 InvokeFlag flag, | 1013 InvokeFlag flag, |
| 1012 Label::Distance done_distance, | 1014 Label::Distance done_distance, |
| 1013 const CallWrapper& call_wrapper = NullCallWrapper()); | 1015 const CallWrapper& call_wrapper); |
| 1014 | 1016 |
| 1015 void EnterExitFramePrologue(); | 1017 void EnterExitFramePrologue(); |
| 1016 void EnterExitFrameEpilogue(int argc, bool save_doubles); | 1018 void EnterExitFrameEpilogue(int argc, bool save_doubles); |
| 1017 | 1019 |
| 1018 void LeaveExitFrameEpilogue(bool restore_context); | 1020 void LeaveExitFrameEpilogue(bool restore_context); |
| 1019 | 1021 |
| 1020 // Allocation support helpers. | 1022 // Allocation support helpers. |
| 1021 void LoadAllocationTopHelper(Register result, | 1023 void LoadAllocationTopHelper(Register result, |
| 1022 Register scratch, | 1024 Register scratch, |
| 1023 AllocationFlags flags); | 1025 AllocationFlags flags); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 masm-> | 1133 masm-> |
| 1132 #else | 1134 #else |
| 1133 #define ACCESS_MASM(masm) masm-> | 1135 #define ACCESS_MASM(masm) masm-> |
| 1134 #endif | 1136 #endif |
| 1135 | 1137 |
| 1136 | 1138 |
| 1137 } // namespace internal | 1139 } // namespace internal |
| 1138 } // namespace v8 | 1140 } // namespace v8 |
| 1139 | 1141 |
| 1140 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1142 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |