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

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 23530066: Lazily save double registers for HCallRuntime instructions within Hydrogen code stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 public: 2045 public:
2046 explicit LCallRuntime(LOperand* context) { 2046 explicit LCallRuntime(LOperand* context) {
2047 inputs_[0] = context; 2047 inputs_[0] = context;
2048 } 2048 }
2049 2049
2050 LOperand* context() { return inputs_[0]; } 2050 LOperand* context() { return inputs_[0]; }
2051 2051
2052 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime") 2052 DECLARE_CONCRETE_INSTRUCTION(CallRuntime, "call-runtime")
2053 DECLARE_HYDROGEN_ACCESSOR(CallRuntime) 2053 DECLARE_HYDROGEN_ACCESSOR(CallRuntime)
2054 2054
2055 virtual bool ClobbersDoubleRegisters() const V8_OVERRIDE {
2056 return save_doubles() == kDontSaveFPRegs;
2057 }
2058
2055 const Runtime::Function* function() const { return hydrogen()->function(); } 2059 const Runtime::Function* function() const { return hydrogen()->function(); }
2056 int arity() const { return hydrogen()->argument_count(); } 2060 int arity() const { return hydrogen()->argument_count(); }
2061 SaveFPRegsMode save_doubles() const { return hydrogen()->save_doubles(); }
2057 }; 2062 };
2058 2063
2059 2064
2060 class LInteger32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2065 class LInteger32ToDouble V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2061 public: 2066 public:
2062 explicit LInteger32ToDouble(LOperand* value) { 2067 explicit LInteger32ToDouble(LOperand* value) {
2063 inputs_[0] = value; 2068 inputs_[0] = value;
2064 } 2069 }
2065 2070
2066 LOperand* value() { return inputs_[0]; } 2071 LOperand* value() { return inputs_[0]; }
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
2918 2923
2919 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2924 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2920 }; 2925 };
2921 2926
2922 #undef DECLARE_HYDROGEN_ACCESSOR 2927 #undef DECLARE_HYDROGEN_ACCESSOR
2923 #undef DECLARE_CONCRETE_INSTRUCTION 2928 #undef DECLARE_CONCRETE_INSTRUCTION
2924 2929
2925 } } // namespace v8::internal 2930 } } // namespace v8::internal
2926 2931
2927 #endif // V8_IA32_LITHIUM_IA32_H_ 2932 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698