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

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

Issue 544943002: X87: Make concrete classes for individual call descriptors (Closed) Base URL: https://github.com/v8/v8.git@bleeding_edge
Patch Set: 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
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | src/x87/lithium-x87.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 // 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_X87_LITHIUM_X87_H_ 5 #ifndef V8_X87_LITHIUM_X87_H_
6 #define V8_X87_LITHIUM_X87_H_ 6 #define V8_X87_LITHIUM_X87_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 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) 1899 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
1900 1900
1901 virtual void PrintDataTo(StringStream* stream) OVERRIDE; 1901 virtual void PrintDataTo(StringStream* stream) OVERRIDE;
1902 1902
1903 int arity() const { return hydrogen()->argument_count() - 1; } 1903 int arity() const { return hydrogen()->argument_count() - 1; }
1904 }; 1904 };
1905 1905
1906 1906
1907 class LCallWithDescriptor FINAL : public LTemplateResultInstruction<1> { 1907 class LCallWithDescriptor FINAL : public LTemplateResultInstruction<1> {
1908 public: 1908 public:
1909 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, 1909 LCallWithDescriptor(CallInterfaceDescriptor descriptor,
1910 const ZoneList<LOperand*>& operands, Zone* zone) 1910 const ZoneList<LOperand*>& operands, Zone* zone)
1911 : inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { 1911 : inputs_(descriptor.GetRegisterParameterCount() + 1, zone) {
1912 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); 1912 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length());
1913 inputs_.AddAll(operands, zone); 1913 inputs_.AddAll(operands, zone);
1914 } 1914 }
1915 1915
1916 LOperand* target() const { return inputs_[0]; } 1916 LOperand* target() const { return inputs_[0]; }
1917 1917
1918 private: 1918 private:
1919 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") 1919 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor")
1920 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) 1920 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
1921 1921
1922 virtual void PrintDataTo(StringStream* stream) OVERRIDE; 1922 virtual void PrintDataTo(StringStream* stream) OVERRIDE;
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
2907 2907
2908 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2908 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2909 }; 2909 };
2910 2910
2911 #undef DECLARE_HYDROGEN_ACCESSOR 2911 #undef DECLARE_HYDROGEN_ACCESSOR
2912 #undef DECLARE_CONCRETE_INSTRUCTION 2912 #undef DECLARE_CONCRETE_INSTRUCTION
2913 2913
2914 } } // namespace v8::internal 2914 } } // namespace v8::internal
2915 2915
2916 #endif // V8_X87_LITHIUM_X87_H_ 2916 #endif // V8_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | src/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698