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

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

Issue 254783003: Convert function.name to API-style accessor and make CallApiGetterStub serializable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1) 802 // Arguments must be stored in ApiParameterOperand(0), ApiParameterOperand(1)
803 // etc. Saves context (esi). If space was reserved for return value then 803 // etc. Saves context (esi). If space was reserved for return value then
804 // stores the pointer to the reserved slot into esi. 804 // stores the pointer to the reserved slot into esi.
805 void PrepareCallApiFunction(int argc); 805 void PrepareCallApiFunction(int argc);
806 806
807 // Calls an API function. Allocates HandleScope, extracts returned value 807 // Calls an API function. Allocates HandleScope, extracts returned value
808 // from handle and propagates exceptions. Clobbers ebx, edi and 808 // from handle and propagates exceptions. Clobbers ebx, edi and
809 // caller-save registers. Restores context. On return removes 809 // caller-save registers. Restores context. On return removes
810 // stack_space * kPointerSize (GCed). 810 // stack_space * kPointerSize (GCed).
811 void CallApiFunctionAndReturn(Register function_address, 811 void CallApiFunctionAndReturn(Register function_address,
812 Address thunk_address, 812 ExternalReference thunk_ref,
813 Operand thunk_last_arg, 813 Operand thunk_last_arg,
814 int stack_space, 814 int stack_space,
815 Operand return_value_operand, 815 Operand return_value_operand,
816 Operand* context_restore_operand); 816 Operand* context_restore_operand);
817 817
818 // Jump to a runtime routine. 818 // Jump to a runtime routine.
819 void JumpToExternalReference(const ExternalReference& ext); 819 void JumpToExternalReference(const ExternalReference& ext);
820 820
821 // --------------------------------------------------------------------------- 821 // ---------------------------------------------------------------------------
822 // Utilities 822 // Utilities
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 } \ 1119 } \
1120 masm-> 1120 masm->
1121 #else 1121 #else
1122 #define ACCESS_MASM(masm) masm-> 1122 #define ACCESS_MASM(masm) masm->
1123 #endif 1123 #endif
1124 1124
1125 1125
1126 } } // namespace v8::internal 1126 } } // namespace v8::internal
1127 1127
1128 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1128 #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