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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // --------------------------------------------------------------------------- | 308 // --------------------------------------------------------------------------- |
309 // JavaScript invokes | 309 // JavaScript invokes |
310 | 310 |
311 // Invoke the JavaScript function code by either calling or jumping. | 311 // Invoke the JavaScript function code by either calling or jumping. |
312 | 312 |
313 void InvokeFunctionCode(Register function, Register new_target, | 313 void InvokeFunctionCode(Register function, Register new_target, |
314 const ParameterCount& expected, | 314 const ParameterCount& expected, |
315 const ParameterCount& actual, InvokeFlag flag, | 315 const ParameterCount& actual, InvokeFlag flag, |
316 const CallWrapper& call_wrapper); | 316 const CallWrapper& call_wrapper); |
317 | 317 |
| 318 void FloodFunctionIfStepping(Register fun, Register new_target, |
| 319 const ParameterCount& expected, |
| 320 const ParameterCount& actual); |
| 321 |
318 // Invoke the JavaScript function in the given register. Changes the | 322 // Invoke the JavaScript function in the given register. Changes the |
319 // current context to the context in the function before invoking. | 323 // current context to the context in the function before invoking. |
320 void InvokeFunction(Register function, Register new_target, | 324 void InvokeFunction(Register function, Register new_target, |
321 const ParameterCount& actual, InvokeFlag flag, | 325 const ParameterCount& actual, InvokeFlag flag, |
322 const CallWrapper& call_wrapper); | 326 const CallWrapper& call_wrapper); |
323 | 327 |
324 void InvokeFunction(Register function, const ParameterCount& expected, | 328 void InvokeFunction(Register function, const ParameterCount& expected, |
325 const ParameterCount& actual, InvokeFlag flag, | 329 const ParameterCount& actual, InvokeFlag flag, |
326 const CallWrapper& call_wrapper); | 330 const CallWrapper& call_wrapper); |
327 | 331 |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 // This handle will be patched with the code object on installation. | 894 // This handle will be patched with the code object on installation. |
891 Handle<Object> code_object_; | 895 Handle<Object> code_object_; |
892 | 896 |
893 // Helper functions for generating invokes. | 897 // Helper functions for generating invokes. |
894 void InvokePrologue(const ParameterCount& expected, | 898 void InvokePrologue(const ParameterCount& expected, |
895 const ParameterCount& actual, Label* done, | 899 const ParameterCount& actual, Label* done, |
896 bool* definitely_mismatches, InvokeFlag flag, | 900 bool* definitely_mismatches, InvokeFlag flag, |
897 Label::Distance done_distance, | 901 Label::Distance done_distance, |
898 const CallWrapper& call_wrapper); | 902 const CallWrapper& call_wrapper); |
899 | 903 |
900 void FloodFunctionIfStepping(Register fun, Register new_target, | |
901 const ParameterCount& expected, | |
902 const ParameterCount& actual); | |
903 | |
904 void EnterExitFramePrologue(); | 904 void EnterExitFramePrologue(); |
905 void EnterExitFrameEpilogue(int argc, bool save_doubles); | 905 void EnterExitFrameEpilogue(int argc, bool save_doubles); |
906 | 906 |
907 void LeaveExitFrameEpilogue(bool restore_context); | 907 void LeaveExitFrameEpilogue(bool restore_context); |
908 | 908 |
909 // Allocation support helpers. | 909 // Allocation support helpers. |
910 void LoadAllocationTopHelper(Register result, Register scratch, | 910 void LoadAllocationTopHelper(Register result, Register scratch, |
911 AllocationFlags flags); | 911 AllocationFlags flags); |
912 | 912 |
913 void UpdateAllocationTopHelper(Register result_end, Register scratch, | 913 void UpdateAllocationTopHelper(Register result_end, Register scratch, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 } \ | 1003 } \ |
1004 masm-> | 1004 masm-> |
1005 #else | 1005 #else |
1006 #define ACCESS_MASM(masm) masm-> | 1006 #define ACCESS_MASM(masm) masm-> |
1007 #endif | 1007 #endif |
1008 | 1008 |
1009 } // namespace internal | 1009 } // namespace internal |
1010 } // namespace v8 | 1010 } // namespace v8 |
1011 | 1011 |
1012 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1012 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |