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

Side by Side Diff: src/x64/macro-assembler-x64.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/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.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 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 // convention requires to put the pointer to the return value slot into 1302 // convention requires to put the pointer to the return value slot into
1303 // rcx (rcx must be preserverd until CallApiFunctionAndReturn). Saves 1303 // rcx (rcx must be preserverd until CallApiFunctionAndReturn). Saves
1304 // context (rsi). Clobbers rax. Allocates arg_stack_space * kPointerSize 1304 // context (rsi). Clobbers rax. Allocates arg_stack_space * kPointerSize
1305 // inside the exit frame (not GCed) accessible via StackSpaceOperand. 1305 // inside the exit frame (not GCed) accessible via StackSpaceOperand.
1306 void PrepareCallApiFunction(int arg_stack_space); 1306 void PrepareCallApiFunction(int arg_stack_space);
1307 1307
1308 // Calls an API function. Allocates HandleScope, extracts returned value 1308 // Calls an API function. Allocates HandleScope, extracts returned value
1309 // from handle and propagates exceptions. Clobbers r14, r15, rbx and 1309 // from handle and propagates exceptions. Clobbers r14, r15, rbx and
1310 // caller-save registers. Restores context. On return removes 1310 // caller-save registers. Restores context. On return removes
1311 // stack_space * kPointerSize (GCed). 1311 // stack_space * kPointerSize (GCed).
1312 void CallApiFunctionAndReturn(Address function_address, 1312 void CallApiFunctionAndReturn(Register function_address,
1313 Address thunk_address, 1313 Address thunk_address,
1314 Register thunk_last_arg, 1314 Register thunk_last_arg,
1315 int stack_space, 1315 int stack_space,
1316 Operand return_value_operand, 1316 Operand return_value_operand,
1317 Operand* context_restore_operand); 1317 Operand* context_restore_operand);
1318 1318
1319 // Before calling a C-function from generated code, align arguments on stack. 1319 // Before calling a C-function from generated code, align arguments on stack.
1320 // After aligning the frame, arguments must be stored in rsp[0], rsp[8], 1320 // After aligning the frame, arguments must be stored in rsp[0], rsp[8],
1321 // etc., not pushed. The argument count assumes all arguments are word sized. 1321 // etc., not pushed. The argument count assumes all arguments are word sized.
1322 // The number of slots reserved for arguments depends on platform. On Windows 1322 // The number of slots reserved for arguments depends on platform. On Windows
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 masm->popfq(); \ 1615 masm->popfq(); \
1616 } \ 1616 } \
1617 masm-> 1617 masm->
1618 #else 1618 #else
1619 #define ACCESS_MASM(masm) masm-> 1619 #define ACCESS_MASM(masm) masm->
1620 #endif 1620 #endif
1621 1621
1622 } } // namespace v8::internal 1622 } } // namespace v8::internal
1623 1623
1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1624 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698