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

Side by Side Diff: src/arm/regexp-macro-assembler-arm.h

Issue 1549031: Call to C function support in macro assembler... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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/arm/macro-assembler-arm.cc ('k') | src/arm/regexp-macro-assembler-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 inline void SafeCallTarget(Label* name); 199 inline void SafeCallTarget(Label* name);
200 200
201 // Pushes the value of a register on the backtrack stack. Decrements the 201 // Pushes the value of a register on the backtrack stack. Decrements the
202 // stack pointer by a word size and stores the register's value there. 202 // stack pointer by a word size and stores the register's value there.
203 inline void Push(Register source); 203 inline void Push(Register source);
204 204
205 // Pops a value from the backtrack stack. Reads the word at the stack pointer 205 // Pops a value from the backtrack stack. Reads the word at the stack pointer
206 // and increments it by a word size. 206 // and increments it by a word size.
207 inline void Pop(Register target); 207 inline void Pop(Register target);
208 208
209 // Before calling a C-function from generated code, align arguments on stack.
210 // After aligning the frame, non-register arguments must be stored in
211 // sp[0], sp[4], etc., not pushed. The argument count assumes all arguments
212 // are word sized.
213 // Some compilers/platforms require the stack to be aligned when calling
214 // C++ code.
215 // Needs a scratch register to do some arithmetic. This register will be
216 // trashed.
217 inline void FrameAlign(int num_arguments, Register scratch);
218
219 // Calls a C function and cleans up the space for arguments allocated
220 // by FrameAlign. The called function is not allowed to trigger a garbage
221 // collection.
222 inline void CallCFunction(ExternalReference function,
223 int num_arguments);
224
225 // Calls a C function and cleans up the frame alignment done by 209 // Calls a C function and cleans up the frame alignment done by
226 // by FrameAlign. The called function *is* allowed to trigger a garbage 210 // by FrameAlign. The called function *is* allowed to trigger a garbage
227 // collection, but may not take more than four arguments (no arguments 211 // collection, but may not take more than four arguments (no arguments
228 // passed on the stack), and the first argument will be a pointer to the 212 // passed on the stack), and the first argument will be a pointer to the
229 // return address. 213 // return address.
230 inline void CallCFunctionUsingStub(ExternalReference function, 214 inline void CallCFunctionUsingStub(ExternalReference function,
231 int num_arguments); 215 int num_arguments);
232 216
233 217
234 MacroAssembler* masm_; 218 MacroAssembler* masm_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 int MinorKey() { return 0; } 257 int MinorKey() { return 0; }
274 const char* GetName() { return "RegExpCEntryStub"; } 258 const char* GetName() { return "RegExpCEntryStub"; }
275 }; 259 };
276 260
277 #endif // V8_NATIVE_REGEXP 261 #endif // V8_NATIVE_REGEXP
278 262
279 263
280 }} // namespace v8::internal 264 }} // namespace v8::internal
281 265
282 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ 266 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm/regexp-macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698