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

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

Issue 4456002: Direct call API functions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 1 month 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // function). 481 // function).
482 void CallCFunction(ExternalReference function, int num_arguments); 482 void CallCFunction(ExternalReference function, int num_arguments);
483 void CallCFunction(Register function, int num_arguments); 483 void CallCFunction(Register function, int num_arguments);
484 484
485 // Prepares stack to put arguments (aligns and so on). Reserves 485 // Prepares stack to put arguments (aligns and so on). Reserves
486 // space for return value if needed (assumes the return value is a handle). 486 // space for return value if needed (assumes the return value is a handle).
487 // Uses callee-saved esi to restore stack state after call. Arguments must be 487 // Uses callee-saved esi to restore stack state after call. Arguments must be
488 // stored in ApiParameterOperand(0), ApiParameterOperand(1) etc. 488 // stored in ApiParameterOperand(0), ApiParameterOperand(1) etc.
489 void PrepareCallApiFunction(int stack_space, int argc); 489 void PrepareCallApiFunction(int stack_space, int argc);
490 490
491 // Tail call an API function (jump). Allocates HandleScope, extracts 491 // Calls an API function. Allocates HandleScope, extracts
492 // returned value from handle and propagates exceptions. 492 // returned value from handle and propagates exceptions.
493 // Clobbers ebx, esi, edi and caller-save registers. 493 // Clobbers ebx, esi, edi and caller-save registers.
494 void CallApiFunctionAndReturn(ApiFunction* function, int argc); 494 void CallApiFunctionAndReturn(ApiFunction* function, int argc);
495 495
496 // Jump to a runtime routine. 496 // Jump to a runtime routine.
497 void JumpToExternalReference(const ExternalReference& ext); 497 void JumpToExternalReference(const ExternalReference& ext);
498 498
499 499
500 // --------------------------------------------------------------------------- 500 // ---------------------------------------------------------------------------
501 // Utilities 501 // Utilities
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 } \ 664 } \
665 masm-> 665 masm->
666 #else 666 #else
667 #define ACCESS_MASM(masm) masm-> 667 #define ACCESS_MASM(masm) masm->
668 #endif 668 #endif
669 669
670 670
671 } } // namespace v8::internal 671 } } // namespace v8::internal
672 672
673 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 673 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698