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

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

Issue 12494012: new style of property/function callbacks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: make arm look like other architectures Created 7 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/stub-cache.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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 int result_size); 1217 int result_size);
1218 1218
1219 // Jump to a runtime routine. 1219 // Jump to a runtime routine.
1220 void JumpToExternalReference(const ExternalReference& ext, int result_size); 1220 void JumpToExternalReference(const ExternalReference& ext, int result_size);
1221 1221
1222 // Prepares stack to put arguments (aligns and so on). WIN64 calling 1222 // Prepares stack to put arguments (aligns and so on). WIN64 calling
1223 // convention requires to put the pointer to the return value slot into 1223 // convention requires to put the pointer to the return value slot into
1224 // rcx (rcx must be preserverd until CallApiFunctionAndReturn). Saves 1224 // rcx (rcx must be preserverd until CallApiFunctionAndReturn). Saves
1225 // context (rsi). Clobbers rax. Allocates arg_stack_space * kPointerSize 1225 // context (rsi). Clobbers rax. Allocates arg_stack_space * kPointerSize
1226 // inside the exit frame (not GCed) accessible via StackSpaceOperand. 1226 // inside the exit frame (not GCed) accessible via StackSpaceOperand.
1227 void PrepareCallApiFunction(int arg_stack_space); 1227 void PrepareCallApiFunction(int arg_stack_space, bool returns_handle);
1228 1228
1229 // Calls an API function. Allocates HandleScope, extracts returned value 1229 // Calls an API function. Allocates HandleScope, extracts returned value
1230 // from handle and propagates exceptions. Clobbers r14, r15, rbx and 1230 // from handle and propagates exceptions. Clobbers r14, r15, rbx and
1231 // caller-save registers. Restores context. On return removes 1231 // caller-save registers. Restores context. On return removes
1232 // stack_space * kPointerSize (GCed). 1232 // stack_space * kPointerSize (GCed).
1233 void CallApiFunctionAndReturn(Address function_address, int stack_space); 1233 void CallApiFunctionAndReturn(Address function_address,
1234 int stack_space,
1235 bool returns_handle,
1236 int return_value_offset_from_rbp);
1234 1237
1235 // Before calling a C-function from generated code, align arguments on stack. 1238 // Before calling a C-function from generated code, align arguments on stack.
1236 // After aligning the frame, arguments must be stored in esp[0], esp[4], 1239 // After aligning the frame, arguments must be stored in esp[0], esp[4],
1237 // etc., not pushed. The argument count assumes all arguments are word sized. 1240 // etc., not pushed. The argument count assumes all arguments are word sized.
1238 // The number of slots reserved for arguments depends on platform. On Windows 1241 // The number of slots reserved for arguments depends on platform. On Windows
1239 // stack slots are reserved for the arguments passed in registers. On other 1242 // stack slots are reserved for the arguments passed in registers. On other
1240 // platforms stack slots are only reserved for the arguments actually passed 1243 // platforms stack slots are only reserved for the arguments actually passed
1241 // on the stack. 1244 // on the stack.
1242 void PrepareCallCFunction(int num_arguments); 1245 void PrepareCallCFunction(int num_arguments);
1243 1246
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 masm->popfq(); \ 1519 masm->popfq(); \
1517 } \ 1520 } \
1518 masm-> 1521 masm->
1519 #else 1522 #else
1520 #define ACCESS_MASM(masm) masm-> 1523 #define ACCESS_MASM(masm) masm->
1521 #endif 1524 #endif
1522 1525
1523 } } // namespace v8::internal 1526 } } // namespace v8::internal
1524 1527
1525 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1528 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698