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

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

Issue 384403002: StubCallInterfaceDescriptor takes a context register. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments and ports. Created 6 years, 5 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/x64/code-stubs-x64.cc ('k') | src/x64/lithium-x64.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_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 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction) 1843 DECLARE_HYDROGEN_ACCESSOR(CallJSFunction)
1844 1844
1845 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1845 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1846 1846
1847 int arity() const { return hydrogen()->argument_count() - 1; } 1847 int arity() const { return hydrogen()->argument_count() - 1; }
1848 }; 1848 };
1849 1849
1850 1850
1851 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { 1851 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> {
1852 public: 1852 public:
1853 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, 1853 LCallWithDescriptor(const InterfaceDescriptor* descriptor,
1854 const ZoneList<LOperand*>& operands, 1854 const ZoneList<LOperand*>& operands,
1855 Zone* zone) 1855 Zone* zone)
1856 : inputs_(descriptor->environment_length() + 1, zone) { 1856 : inputs_(descriptor->GetRegisterParameterCount() + 1, zone) {
1857 ASSERT(descriptor->environment_length() + 1 == operands.length()); 1857 ASSERT(descriptor->GetRegisterParameterCount() + 1 == operands.length());
1858 inputs_.AddAll(operands, zone); 1858 inputs_.AddAll(operands, zone);
1859 } 1859 }
1860 1860
1861 LOperand* target() const { return inputs_[0]; } 1861 LOperand* target() const { return inputs_[0]; }
1862 1862
1863 private: 1863 private:
1864 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") 1864 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor")
1865 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) 1865 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
1866 1866
1867 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1867 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
2859 2859
2860 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2860 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2861 }; 2861 };
2862 2862
2863 #undef DECLARE_HYDROGEN_ACCESSOR 2863 #undef DECLARE_HYDROGEN_ACCESSOR
2864 #undef DECLARE_CONCRETE_INSTRUCTION 2864 #undef DECLARE_CONCRETE_INSTRUCTION
2865 2865
2866 } } // namespace v8::int 2866 } } // namespace v8::int
2867 2867
2868 #endif // V8_X64_LITHIUM_X64_H_ 2868 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698