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

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

Issue 532473002: InterfaceDescriptor becomes CallInterfaceDescriptor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. 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
« no previous file with comments | « src/arm/interface-descriptors-arm.cc ('k') | src/arm/lithium-arm.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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_ARM_H_
6 #define V8_ARM_LITHIUM_ARM_H_ 6 #define V8_ARM_LITHIUM_ARM_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 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) 1867 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
1868 1868
1869 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1869 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1870 1870
1871 int arity() const { return hydrogen()->argument_count() - 1; } 1871 int arity() const { return hydrogen()->argument_count() - 1; }
1872 }; 1872 };
1873 1873
1874 1874
1875 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { 1875 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> {
1876 public: 1876 public:
1877 LCallWithDescriptor(const InterfaceDescriptor* descriptor, 1877 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor,
1878 const ZoneList<LOperand*>& operands, 1878 const ZoneList<LOperand*>& operands, Zone* zone)
1879 Zone* zone) 1879 : descriptor_(descriptor),
1880 : descriptor_(descriptor), 1880 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) {
1881 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) {
1882 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length()); 1881 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length());
1883 inputs_.AddAll(operands, zone); 1882 inputs_.AddAll(operands, zone);
1884 } 1883 }
1885 1884
1886 LOperand* target() const { return inputs_[0]; } 1885 LOperand* target() const { return inputs_[0]; }
1887 1886
1888 const InterfaceDescriptor* descriptor() { return descriptor_; } 1887 const CallInterfaceDescriptor* descriptor() { return descriptor_; }
1889 1888
1890 private: 1889 private:
1891 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") 1890 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor")
1892 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) 1891 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
1893 1892
1894 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1893 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1895 1894
1896 int arity() const { return hydrogen()->argument_count() - 1; } 1895 int arity() const { return hydrogen()->argument_count() - 1; }
1897 1896
1898 const InterfaceDescriptor* descriptor_; 1897 const CallInterfaceDescriptor* descriptor_;
1899 ZoneList<LOperand*> inputs_; 1898 ZoneList<LOperand*> inputs_;
1900 1899
1901 // Iterator support. 1900 // Iterator support.
1902 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } 1901 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); }
1903 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } 1902 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; }
1904 1903
1905 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } 1904 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; }
1906 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } 1905 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; }
1907 }; 1906 };
1908 1907
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
2897 2896
2898 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2897 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2899 }; 2898 };
2900 2899
2901 #undef DECLARE_HYDROGEN_ACCESSOR 2900 #undef DECLARE_HYDROGEN_ACCESSOR
2902 #undef DECLARE_CONCRETE_INSTRUCTION 2901 #undef DECLARE_CONCRETE_INSTRUCTION
2903 2902
2904 } } // namespace v8::internal 2903 } } // namespace v8::internal
2905 2904
2906 #endif // V8_ARM_LITHIUM_ARM_H_ 2905 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/interface-descriptors-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698