Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 561 // Uses callee-saved esi to restore stack state after call. Arguments must be | 561 // Uses callee-saved esi to restore stack state after call. Arguments must be |
| 562 // stored in ApiParameterOperand(0), ApiParameterOperand(1) etc. Saves | 562 // stored in ApiParameterOperand(0), ApiParameterOperand(1) etc. Saves |
| 563 // context (esi). | 563 // context (esi). |
| 564 void PrepareCallApiFunction(int argc, Register scratch); | 564 void PrepareCallApiFunction(int argc, Register scratch); |
| 565 | 565 |
| 566 // Calls an API function. Allocates HandleScope, extracts | 566 // Calls an API function. Allocates HandleScope, extracts |
| 567 // returned value from handle and propagates exceptions. | 567 // returned value from handle and propagates exceptions. |
| 568 // Clobbers ebx, edi and caller-save registers. Restores context. | 568 // Clobbers ebx, edi and caller-save registers. Restores context. |
| 569 // On return removes stack_space * kPointerSize (GCed). | 569 // On return removes stack_space * kPointerSize (GCed). |
| 570 MaybeObject* TryCallApiFunctionAndReturn(ApiFunction* function, | 570 MaybeObject* TryCallApiFunctionAndReturn(ApiFunction* function, |
| 571 int argc, | |
|
Vitaly Repeshko
2011/07/04 22:41:36
See the .cc file comments. If you still think pass
| |
| 571 int stack_space); | 572 int stack_space); |
| 572 | 573 |
| 573 // Jump to a runtime routine. | 574 // Jump to a runtime routine. |
| 574 void JumpToExternalReference(const ExternalReference& ext); | 575 void JumpToExternalReference(const ExternalReference& ext); |
| 575 | 576 |
| 576 MaybeObject* TryJumpToExternalReference(const ExternalReference& ext); | 577 MaybeObject* TryJumpToExternalReference(const ExternalReference& ext); |
| 577 | 578 |
| 578 | 579 |
| 579 // --------------------------------------------------------------------------- | 580 // --------------------------------------------------------------------------- |
| 580 // Utilities | 581 // Utilities |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 787 } \ | 788 } \ |
| 788 masm-> | 789 masm-> |
| 789 #else | 790 #else |
| 790 #define ACCESS_MASM(masm) masm-> | 791 #define ACCESS_MASM(masm) masm-> |
| 791 #endif | 792 #endif |
| 792 | 793 |
| 793 | 794 |
| 794 } } // namespace v8::internal | 795 } } // namespace v8::internal |
| 795 | 796 |
| 796 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 797 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |