Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 836093007: split api call stubs into accessor and function call stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 // etc. Saves context (esi). If space was reserved for return value then 797 // etc. Saves context (esi). If space was reserved for return value then
798 // stores the pointer to the reserved slot into esi. 798 // stores the pointer to the reserved slot into esi.
799 void PrepareCallApiFunction(int argc); 799 void PrepareCallApiFunction(int argc);
800 800
801 // Calls an API function. Allocates HandleScope, extracts returned value 801 // Calls an API function. Allocates HandleScope, extracts returned value
802 // from handle and propagates exceptions. Clobbers ebx, edi and 802 // from handle and propagates exceptions. Clobbers ebx, edi and
803 // caller-save registers. Restores context. On return removes 803 // caller-save registers. Restores context. On return removes
804 // stack_space * kPointerSize (GCed). 804 // stack_space * kPointerSize (GCed).
805 void CallApiFunctionAndReturn(Register function_address, 805 void CallApiFunctionAndReturn(Register function_address,
806 ExternalReference thunk_ref, 806 ExternalReference thunk_ref,
807 Operand thunk_last_arg, 807 Operand thunk_last_arg, int stack_space,
808 int stack_space, 808 Operand* stack_space_operand,
809 Operand return_value_operand, 809 Operand return_value_operand,
810 Operand* context_restore_operand); 810 Operand* context_restore_operand);
811 811
812 // Jump to a runtime routine. 812 // Jump to a runtime routine.
813 void JumpToExternalReference(const ExternalReference& ext); 813 void JumpToExternalReference(const ExternalReference& ext);
814 814
815 // --------------------------------------------------------------------------- 815 // ---------------------------------------------------------------------------
816 // Utilities 816 // Utilities
817 817
818 void Ret(); 818 void Ret();
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 } \ 1111 } \
1112 masm-> 1112 masm->
1113 #else 1113 #else
1114 #define ACCESS_MASM(masm) masm-> 1114 #define ACCESS_MASM(masm) masm->
1115 #endif 1115 #endif
1116 1116
1117 1117
1118 } } // namespace v8::internal 1118 } } // namespace v8::internal
1119 1119
1120 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1120 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698