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

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

Issue 3970005: Make Failure inherit from MaybeObject instead of Object. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 2 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/assembler-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 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 766
767 // --------------------------------------------------------------------------- 767 // ---------------------------------------------------------------------------
768 // Runtime calls 768 // Runtime calls
769 769
770 // Call a code stub. 770 // Call a code stub.
771 void CallStub(CodeStub* stub); 771 void CallStub(CodeStub* stub);
772 772
773 // Call a code stub and return the code object called. Try to generate 773 // Call a code stub and return the code object called. Try to generate
774 // the code if necessary. Do not perform a GC but instead return a retry 774 // the code if necessary. Do not perform a GC but instead return a retry
775 // after GC failure. 775 // after GC failure.
776 Object* TryCallStub(CodeStub* stub); 776 MUST_USE_RESULT MaybeObject* TryCallStub(CodeStub* stub);
777 777
778 // Tail call a code stub (jump). 778 // Tail call a code stub (jump).
779 void TailCallStub(CodeStub* stub); 779 void TailCallStub(CodeStub* stub);
780 780
781 // Tail call a code stub (jump) and return the code object called. Try to 781 // Tail call a code stub (jump) and return the code object called. Try to
782 // generate the code if necessary. Do not perform a GC but instead return 782 // generate the code if necessary. Do not perform a GC but instead return
783 // a retry after GC failure. 783 // a retry after GC failure.
784 Object* TryTailCallStub(CodeStub* stub); 784 MUST_USE_RESULT MaybeObject* TryTailCallStub(CodeStub* stub);
785 785
786 // Return from a code stub after popping its arguments. 786 // Return from a code stub after popping its arguments.
787 void StubReturn(int argc); 787 void StubReturn(int argc);
788 788
789 // Call a runtime routine. 789 // Call a runtime routine.
790 void CallRuntime(Runtime::Function* f, int num_arguments); 790 void CallRuntime(Runtime::Function* f, int num_arguments);
791 791
792 // Call a runtime function, returning the CodeStub object called. 792 // Call a runtime function, returning the CodeStub object called.
793 // Try to generate the stub code if necessary. Do not perform a GC 793 // Try to generate the stub code if necessary. Do not perform a GC
794 // but instead return a retry after GC failure. 794 // but instead return a retry after GC failure.
795 Object* TryCallRuntime(Runtime::Function* f, int num_arguments); 795 MUST_USE_RESULT MaybeObject* TryCallRuntime(Runtime::Function* f,
796 int num_arguments);
796 797
797 // Convenience function: Same as above, but takes the fid instead. 798 // Convenience function: Same as above, but takes the fid instead.
798 void CallRuntime(Runtime::FunctionId id, int num_arguments); 799 void CallRuntime(Runtime::FunctionId id, int num_arguments);
799 800
800 // Convenience function: Same as above, but takes the fid instead. 801 // Convenience function: Same as above, but takes the fid instead.
801 Object* TryCallRuntime(Runtime::FunctionId id, int num_arguments); 802 MUST_USE_RESULT MaybeObject* TryCallRuntime(Runtime::FunctionId id,
803 int num_arguments);
802 804
803 // Convenience function: call an external reference. 805 // Convenience function: call an external reference.
804 void CallExternalReference(const ExternalReference& ext, 806 void CallExternalReference(const ExternalReference& ext,
805 int num_arguments); 807 int num_arguments);
806 808
807 // Tail call of a runtime routine (jump). 809 // Tail call of a runtime routine (jump).
808 // Like JumpToExternalReference, but also takes care of passing the number 810 // Like JumpToExternalReference, but also takes care of passing the number
809 // of parameters. 811 // of parameters.
810 void TailCallExternalReference(const ExternalReference& ext, 812 void TailCallExternalReference(const ExternalReference& ext,
811 int num_arguments, 813 int num_arguments,
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 Jump(adaptor, RelocInfo::CODE_TARGET); 1691 Jump(adaptor, RelocInfo::CODE_TARGET);
1690 } 1692 }
1691 bind(&invoke); 1693 bind(&invoke);
1692 } 1694 }
1693 } 1695 }
1694 1696
1695 1697
1696 } } // namespace v8::internal 1698 } } // namespace v8::internal
1697 1699
1698 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1700 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698