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

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

Issue 527093002: Make concrete classes for individual call descriptors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_IA32_LITHIUM_IA32_H_ 5 #ifndef V8_IA32_LITHIUM_IA32_H_
6 #define V8_IA32_LITHIUM_IA32_H_ 6 #define V8_IA32_LITHIUM_IA32_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) 1884 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
1885 1885
1886 virtual void PrintDataTo(StringStream* stream) OVERRIDE; 1886 virtual void PrintDataTo(StringStream* stream) OVERRIDE;
1887 1887
1888 int arity() const { return hydrogen()->argument_count() - 1; } 1888 int arity() const { return hydrogen()->argument_count() - 1; }
1889 }; 1889 };
1890 1890
1891 1891
1892 class LCallWithDescriptor FINAL : public LTemplateResultInstruction<1> { 1892 class LCallWithDescriptor FINAL : public LTemplateResultInstruction<1> {
1893 public: 1893 public:
1894 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, 1894 LCallWithDescriptor(CallInterfaceDescriptor descriptor,
1895 const ZoneList<LOperand*>& operands, Zone* zone) 1895 const ZoneList<LOperand*>& operands, Zone* zone)
1896 : inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { 1896 : inputs_(descriptor.GetRegisterParameterCount() + 1, zone) {
1897 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); 1897 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length());
1898 inputs_.AddAll(operands, zone); 1898 inputs_.AddAll(operands, zone);
1899 } 1899 }
1900 1900
1901 LOperand* target() const { return inputs_[0]; } 1901 LOperand* target() const { return inputs_[0]; }
1902 1902
1903 private: 1903 private:
1904 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") 1904 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor")
1905 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) 1905 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
1906 1906
1907 virtual void PrintDataTo(StringStream* stream) OVERRIDE; 1907 virtual void PrintDataTo(StringStream* stream) OVERRIDE;
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
2891 2891
2892 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2892 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2893 }; 2893 };
2894 2894
2895 #undef DECLARE_HYDROGEN_ACCESSOR 2895 #undef DECLARE_HYDROGEN_ACCESSOR
2896 #undef DECLARE_CONCRETE_INSTRUCTION 2896 #undef DECLARE_CONCRETE_INSTRUCTION
2897 2897
2898 } } // namespace v8::internal 2898 } } // namespace v8::internal
2899 2899
2900 #endif // V8_IA32_LITHIUM_IA32_H_ 2900 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698