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

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

Issue 78283002: Restore saved caller FP registers on stub failure (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Port to ia32, arm, and mips Created 7 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
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/builtins-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 // Call a runtime routine. 770 // Call a runtime routine.
771 void CallRuntime(const Runtime::Function* f, 771 void CallRuntime(const Runtime::Function* f,
772 int num_arguments, 772 int num_arguments,
773 SaveFPRegsMode save_doubles = kDontSaveFPRegs); 773 SaveFPRegsMode save_doubles = kDontSaveFPRegs);
774 void CallRuntimeSaveDoubles(Runtime::FunctionId id) { 774 void CallRuntimeSaveDoubles(Runtime::FunctionId id) {
775 const Runtime::Function* function = Runtime::FunctionForId(id); 775 const Runtime::Function* function = Runtime::FunctionForId(id);
776 CallRuntime(function, function->nargs, kSaveFPRegs); 776 CallRuntime(function, function->nargs, kSaveFPRegs);
777 } 777 }
778 778
779 // Convenience function: Same as above, but takes the fid instead. 779 // Convenience function: Same as above, but takes the fid instead.
780 void CallRuntime(Runtime::FunctionId id, int num_arguments) { 780 void CallRuntime(Runtime::FunctionId id,
781 CallRuntime(Runtime::FunctionForId(id), num_arguments); 781 int num_arguments,
782 SaveFPRegsMode save_doubles = kDontSaveFPRegs) {
783 CallRuntime(Runtime::FunctionForId(id), num_arguments, save_doubles);
782 } 784 }
783 785
784 // Convenience function: call an external reference. 786 // Convenience function: call an external reference.
785 void CallExternalReference(ExternalReference ref, int num_arguments); 787 void CallExternalReference(ExternalReference ref, int num_arguments);
786 788
787 // Tail call of a runtime routine (jump). 789 // Tail call of a runtime routine (jump).
788 // Like JumpToExternalReference, but also takes care of passing the number 790 // Like JumpToExternalReference, but also takes care of passing the number
789 // of parameters. 791 // of parameters.
790 void TailCallExternalReference(const ExternalReference& ext, 792 void TailCallExternalReference(const ExternalReference& ext,
791 int num_arguments, 793 int num_arguments,
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 } \ 1129 } \
1128 masm-> 1130 masm->
1129 #else 1131 #else
1130 #define ACCESS_MASM(masm) masm-> 1132 #define ACCESS_MASM(masm) masm->
1131 #endif 1133 #endif
1132 1134
1133 1135
1134 } } // namespace v8::internal 1136 } } // namespace v8::internal
1135 1137
1136 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1138 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698