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

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

Issue 140613004: stub fast api calls (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 // space for return value if needed (assumes the return value is a handle). 808 // space for return value if needed (assumes the return value is a handle).
809 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1) 809 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1)
810 // etc. Saves context (esi). If space was reserved for return value then 810 // etc. Saves context (esi). If space was reserved for return value then
811 // stores the pointer to the reserved slot into esi. 811 // stores the pointer to the reserved slot into esi.
812 void PrepareCallApiFunction(int argc); 812 void PrepareCallApiFunction(int argc);
813 813
814 // Calls an API function. Allocates HandleScope, extracts returned value 814 // Calls an API function. Allocates HandleScope, extracts returned value
815 // from handle and propagates exceptions. Clobbers ebx, edi and 815 // from handle and propagates exceptions. Clobbers ebx, edi and
816 // caller-save registers. Restores context. On return removes 816 // caller-save registers. Restores context. On return removes
817 // stack_space * kPointerSize (GCed). 817 // stack_space * kPointerSize (GCed).
818 void CallApiFunctionAndReturn(Address function_address, 818 void CallApiFunctionAndReturn(Register function_address,
819 Address thunk_address, 819 Address thunk_address,
820 Operand thunk_last_arg, 820 Operand thunk_last_arg,
821 int stack_space, 821 int stack_space,
822 Operand return_value_operand, 822 Operand return_value_operand,
823 Operand* context_restore_operand); 823 Operand* context_restore_operand);
824 824
825 // Jump to a runtime routine. 825 // Jump to a runtime routine.
826 void JumpToExternalReference(const ExternalReference& ext); 826 void JumpToExternalReference(const ExternalReference& ext);
827 827
828 // --------------------------------------------------------------------------- 828 // ---------------------------------------------------------------------------
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 } \ 1114 } \
1115 masm-> 1115 masm->
1116 #else 1116 #else
1117 #define ACCESS_MASM(masm) masm-> 1117 #define ACCESS_MASM(masm) masm->
1118 #endif 1118 #endif
1119 1119
1120 1120
1121 } } // namespace v8::internal 1121 } } // namespace v8::internal
1122 1122
1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698