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

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

Issue 6880010: Merge (7265, 7271] from bleeding_edge to experimental/gc branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 // Call a code stub. 702 // Call a code stub.
703 void TailCallStub(CodeStub* stub, Condition cond = al); 703 void TailCallStub(CodeStub* stub, Condition cond = al);
704 704
705 // Tail call a code stub (jump) and return the code object called. Try to 705 // Tail call a code stub (jump) and return the code object called. Try to
706 // generate the code if necessary. Do not perform a GC but instead return 706 // generate the code if necessary. Do not perform a GC but instead return
707 // a retry after GC failure. 707 // a retry after GC failure.
708 MUST_USE_RESULT MaybeObject* TryTailCallStub(CodeStub* stub, 708 MUST_USE_RESULT MaybeObject* TryTailCallStub(CodeStub* stub,
709 Condition cond = al); 709 Condition cond = al);
710 710
711 // Call a runtime routine. 711 // Call a runtime routine.
712 void CallRuntime(Runtime::Function* f, int num_arguments); 712 void CallRuntime(const Runtime::Function* f, int num_arguments);
713 void CallRuntimeSaveDoubles(Runtime::FunctionId id); 713 void CallRuntimeSaveDoubles(Runtime::FunctionId id);
714 714
715 // Convenience function: Same as above, but takes the fid instead. 715 // Convenience function: Same as above, but takes the fid instead.
716 void CallRuntime(Runtime::FunctionId fid, int num_arguments); 716 void CallRuntime(Runtime::FunctionId fid, int num_arguments);
717 717
718 // Convenience function: call an external reference. 718 // Convenience function: call an external reference.
719 void CallExternalReference(const ExternalReference& ext, 719 void CallExternalReference(const ExternalReference& ext,
720 int num_arguments); 720 int num_arguments);
721 721
722 // Tail call of a runtime routine (jump). 722 // Tail call of a runtime routine (jump).
(...skipping 23 matching lines...) Expand all
746 // Needs a scratch register to do some arithmetic. This register will be 746 // Needs a scratch register to do some arithmetic. This register will be
747 // trashed. 747 // trashed.
748 void PrepareCallCFunction(int num_arguments, Register scratch); 748 void PrepareCallCFunction(int num_arguments, Register scratch);
749 749
750 // Calls a C function and cleans up the space for arguments allocated 750 // Calls a C function and cleans up the space for arguments allocated
751 // by PrepareCallCFunction. The called function is not allowed to trigger a 751 // by PrepareCallCFunction. The called function is not allowed to trigger a
752 // garbage collection, since that might move the code and invalidate the 752 // garbage collection, since that might move the code and invalidate the
753 // return address (unless this is somehow accounted for by the called 753 // return address (unless this is somehow accounted for by the called
754 // function). 754 // function).
755 void CallCFunction(ExternalReference function, int num_arguments); 755 void CallCFunction(ExternalReference function, int num_arguments);
756 void CallCFunction(Register function, int num_arguments); 756 void CallCFunction(Register function, Register scratch, int num_arguments);
757 757
758 void GetCFunctionDoubleResult(const DoubleRegister dst); 758 void GetCFunctionDoubleResult(const DoubleRegister dst);
759 759
760 // Calls an API function. Allocates HandleScope, extracts returned value 760 // Calls an API function. Allocates HandleScope, extracts returned value
761 // from handle and propagates exceptions. Restores context. 761 // from handle and propagates exceptions. Restores context.
762 // stack_space - space to be unwound on exit (includes the call js 762 // stack_space - space to be unwound on exit (includes the call js
763 // arguments space and the additional space allocated for the fast call). 763 // arguments space and the additional space allocated for the fast call).
764 MaybeObject* TryCallApiFunctionAndReturn(ExternalReference function, 764 MaybeObject* TryCallApiFunctionAndReturn(ExternalReference function,
765 int stack_space); 765 int stack_space);
766 766
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 // --------------------------------------------------------------------------- 928 // ---------------------------------------------------------------------------
929 // Patching helpers. 929 // Patching helpers.
930 930
931 // Get the location of a relocated constant (its address in the constant pool) 931 // Get the location of a relocated constant (its address in the constant pool)
932 // from its load site. 932 // from its load site.
933 void GetRelocatedValueLocation(Register ldr_location, 933 void GetRelocatedValueLocation(Register ldr_location,
934 Register result); 934 Register result);
935 935
936 936
937 private: 937 private:
938 void CallCFunctionHelper(Register function,
939 ExternalReference function_reference,
940 Register scratch,
941 int num_arguments);
942
938 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 943 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
939 int CallSize(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 944 int CallSize(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
940 void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 945 void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
941 946
942 // Helper functions for generating invokes. 947 // Helper functions for generating invokes.
943 void InvokePrologue(const ParameterCount& expected, 948 void InvokePrologue(const ParameterCount& expected,
944 const ParameterCount& actual, 949 const ParameterCount& actual,
945 Handle<Code> code_constant, 950 Handle<Code> code_constant,
946 Register code_reg, 951 Register code_reg,
947 Label* done, 952 Label* done,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1046 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1042 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1047 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1043 #else 1048 #else
1044 #define ACCESS_MASM(masm) masm-> 1049 #define ACCESS_MASM(masm) masm->
1045 #endif 1050 #endif
1046 1051
1047 1052
1048 } } // namespace v8::internal 1053 } } // namespace v8::internal
1049 1054
1050 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1055 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-gap-resolver-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | src/heap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698