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

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

Issue 860593002: X87: 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/x87/interface-descriptors-x87.cc ('k') | src/x87/macro-assembler-x87.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_X87_MACRO_ASSEMBLER_X87_H_ 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 // etc. Saves context (esi). If space was reserved for return value then 761 // etc. Saves context (esi). If space was reserved for return value then
762 // stores the pointer to the reserved slot into esi. 762 // stores the pointer to the reserved slot into esi.
763 void PrepareCallApiFunction(int argc); 763 void PrepareCallApiFunction(int argc);
764 764
765 // Calls an API function. Allocates HandleScope, extracts returned value 765 // Calls an API function. Allocates HandleScope, extracts returned value
766 // from handle and propagates exceptions. Clobbers ebx, edi and 766 // from handle and propagates exceptions. Clobbers ebx, edi and
767 // caller-save registers. Restores context. On return removes 767 // caller-save registers. Restores context. On return removes
768 // stack_space * kPointerSize (GCed). 768 // stack_space * kPointerSize (GCed).
769 void CallApiFunctionAndReturn(Register function_address, 769 void CallApiFunctionAndReturn(Register function_address,
770 ExternalReference thunk_ref, 770 ExternalReference thunk_ref,
771 Operand thunk_last_arg, 771 Operand thunk_last_arg, int stack_space,
772 int stack_space, 772 Operand* stack_space_operand,
773 Operand return_value_operand, 773 Operand return_value_operand,
774 Operand* context_restore_operand); 774 Operand* context_restore_operand);
775 775
776 // Jump to a runtime routine. 776 // Jump to a runtime routine.
777 void JumpToExternalReference(const ExternalReference& ext); 777 void JumpToExternalReference(const ExternalReference& ext);
778 778
779 // --------------------------------------------------------------------------- 779 // ---------------------------------------------------------------------------
780 // Utilities 780 // Utilities
781 781
782 void Ret(); 782 void Ret();
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 } \ 1073 } \
1074 masm-> 1074 masm->
1075 #else 1075 #else
1076 #define ACCESS_MASM(masm) masm-> 1076 #define ACCESS_MASM(masm) masm->
1077 #endif 1077 #endif
1078 1078
1079 1079
1080 } } // namespace v8::internal 1080 } } // namespace v8::internal
1081 1081
1082 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1082 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/x87/interface-descriptors-x87.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698