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

Side by Side Diff: src/x64/lithium-x64.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_X64_LITHIUM_X64_H_ 5 #ifndef V8_X64_LITHIUM_X64_H_
6 #define V8_X64_LITHIUM_X64_H_ 6 #define V8_X64_LITHIUM_X64_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 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) 1870 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
1871 1871
1872 virtual void PrintDataTo(StringStream* stream) OVERRIDE; 1872 virtual void PrintDataTo(StringStream* stream) OVERRIDE;
1873 1873
1874 int arity() const { return hydrogen()->argument_count() - 1; } 1874 int arity() const { return hydrogen()->argument_count() - 1; }
1875 }; 1875 };
1876 1876
1877 1877
1878 class LCallWithDescriptor FINAL : public LTemplateResultInstruction<1> { 1878 class LCallWithDescriptor FINAL : public LTemplateResultInstruction<1> {
1879 public: 1879 public:
1880 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, 1880 LCallWithDescriptor(CallInterfaceDescriptor descriptor,
1881 const ZoneList<LOperand*>& operands, Zone* zone) 1881 const ZoneList<LOperand*>& operands, Zone* zone)
1882 : inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { 1882 : inputs_(descriptor.GetRegisterParameterCount() + 1, zone) {
1883 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); 1883 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length());
1884 inputs_.AddAll(operands, zone); 1884 inputs_.AddAll(operands, zone);
1885 } 1885 }
1886 1886
1887 LOperand* target() const { return inputs_[0]; } 1887 LOperand* target() const { return inputs_[0]; }
1888 1888
1889 private: 1889 private:
1890 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") 1890 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor")
1891 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) 1891 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
1892 1892
1893 virtual void PrintDataTo(StringStream* stream) OVERRIDE; 1893 virtual void PrintDataTo(StringStream* stream) OVERRIDE;
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
2886 2886
2887 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2887 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2888 }; 2888 };
2889 2889
2890 #undef DECLARE_HYDROGEN_ACCESSOR 2890 #undef DECLARE_HYDROGEN_ACCESSOR
2891 #undef DECLARE_CONCRETE_INSTRUCTION 2891 #undef DECLARE_CONCRETE_INSTRUCTION
2892 2892
2893 } } // namespace v8::int 2893 } } // namespace v8::int
2894 2894
2895 #endif // V8_X64_LITHIUM_X64_H_ 2895 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698