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

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

Issue 767743002: Hydrogen code stubs for vector-based ICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 6 years 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/mips64/lithium-codegen-mips64.cc ('k') | src/mips64/lithium-mips64.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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_
6 #define V8_MIPS_LITHIUM_MIPS_H_ 6 #define V8_MIPS_LITHIUM_MIPS_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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 } 465 }
466 466
467 LOperand* context() { return inputs_[0]; } 467 LOperand* context() { return inputs_[0]; }
468 468
469 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") 469 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
470 DECLARE_HYDROGEN_ACCESSOR(CallStub) 470 DECLARE_HYDROGEN_ACCESSOR(CallStub)
471 }; 471 };
472 472
473 473
474 class LTailCallThroughMegamorphicCache FINAL 474 class LTailCallThroughMegamorphicCache FINAL
475 : public LTemplateInstruction<0, 3, 0> { 475 : public LTemplateInstruction<0, 5, 0> {
476 public: 476 public:
477 explicit LTailCallThroughMegamorphicCache(LOperand* context, 477 LTailCallThroughMegamorphicCache(LOperand* context, LOperand* receiver,
478 LOperand* receiver, 478 LOperand* name, LOperand* slot,
479 LOperand* name) { 479 LOperand* vector) {
480 inputs_[0] = context; 480 inputs_[0] = context;
481 inputs_[1] = receiver; 481 inputs_[1] = receiver;
482 inputs_[2] = name; 482 inputs_[2] = name;
483 inputs_[3] = slot;
484 inputs_[4] = vector;
483 } 485 }
484 486
485 LOperand* context() { return inputs_[0]; } 487 LOperand* context() { return inputs_[0]; }
486 LOperand* receiver() { return inputs_[1]; } 488 LOperand* receiver() { return inputs_[1]; }
487 LOperand* name() { return inputs_[2]; } 489 LOperand* name() { return inputs_[2]; }
490 LOperand* slot() { return inputs_[3]; }
491 LOperand* vector() { return inputs_[4]; }
488 492
489 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, 493 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache,
490 "tail-call-through-megamorphic-cache") 494 "tail-call-through-megamorphic-cache")
491 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) 495 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache)
492 }; 496 };
493 497
494 498
495 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> { 499 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> {
496 public: 500 public:
497 bool HasInterestingComment(LCodeGen* gen) const OVERRIDE { return false; } 501 bool HasInterestingComment(LCodeGen* gen) const OVERRIDE { return false; }
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1849 : descriptor_(descriptor), 1853 : descriptor_(descriptor),
1850 inputs_(descriptor.GetRegisterParameterCount() + 1, zone) { 1854 inputs_(descriptor.GetRegisterParameterCount() + 1, zone) {
1851 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length()); 1855 DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length());
1852 inputs_.AddAll(operands, zone); 1856 inputs_.AddAll(operands, zone);
1853 } 1857 }
1854 1858
1855 LOperand* target() const { return inputs_[0]; } 1859 LOperand* target() const { return inputs_[0]; }
1856 1860
1857 const CallInterfaceDescriptor descriptor() { return descriptor_; } 1861 const CallInterfaceDescriptor descriptor() { return descriptor_; }
1858 1862
1863 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
1864
1859 private: 1865 private:
1860 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") 1866 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor")
1861 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
1862 1867
1863 void PrintDataTo(StringStream* stream) OVERRIDE; 1868 void PrintDataTo(StringStream* stream) OVERRIDE;
1864 1869
1865 int arity() const { return hydrogen()->argument_count() - 1; } 1870 int arity() const { return hydrogen()->argument_count() - 1; }
1866 1871
1867 CallInterfaceDescriptor descriptor_; 1872 CallInterfaceDescriptor descriptor_;
1868 ZoneList<LOperand*> inputs_; 1873 ZoneList<LOperand*> inputs_;
1869 1874
1870 // Iterator support. 1875 // Iterator support.
1871 int InputCount() FINAL { return inputs_.length(); } 1876 int InputCount() FINAL { return inputs_.length(); }
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
2816 2821
2817 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2822 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2818 }; 2823 };
2819 2824
2820 #undef DECLARE_HYDROGEN_ACCESSOR 2825 #undef DECLARE_HYDROGEN_ACCESSOR
2821 #undef DECLARE_CONCRETE_INSTRUCTION 2826 #undef DECLARE_CONCRETE_INSTRUCTION
2822 2827
2823 } } // namespace v8::internal 2828 } } // namespace v8::internal
2824 2829
2825 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2830 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698