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

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

Issue 546733003: MIPS: To aid vector-based load ic work, we need to be able to handle the megamorphic load case in h… (Closed) Base URL: https://v8.googlecode.com/svn/branches/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 | Annotate | Revision Log
« 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 V(StoreKeyed) \ 144 V(StoreKeyed) \
145 V(StoreKeyedGeneric) \ 145 V(StoreKeyedGeneric) \
146 V(StoreNamedField) \ 146 V(StoreNamedField) \
147 V(StoreNamedGeneric) \ 147 V(StoreNamedGeneric) \
148 V(StringAdd) \ 148 V(StringAdd) \
149 V(StringCharCodeAt) \ 149 V(StringCharCodeAt) \
150 V(StringCharFromCode) \ 150 V(StringCharFromCode) \
151 V(StringCompareAndBranch) \ 151 V(StringCompareAndBranch) \
152 V(SubI) \ 152 V(SubI) \
153 V(TaggedToI) \ 153 V(TaggedToI) \
154 V(TailCallThroughMegamorphicCache) \
154 V(ThisFunction) \ 155 V(ThisFunction) \
155 V(ToFastProperties) \ 156 V(ToFastProperties) \
156 V(TransitionElementsKind) \ 157 V(TransitionElementsKind) \
157 V(TrapAllocationMemento) \ 158 V(TrapAllocationMemento) \
158 V(Typeof) \ 159 V(Typeof) \
159 V(TypeofIsAndBranch) \ 160 V(TypeofIsAndBranch) \
160 V(Uint32ToDouble) \ 161 V(Uint32ToDouble) \
161 V(UnknownOSRValue) \ 162 V(UnknownOSRValue) \
162 V(WrapReceiver) 163 V(WrapReceiver)
163 164
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 inputs_[0] = context; 474 inputs_[0] = context;
474 } 475 }
475 476
476 LOperand* context() { return inputs_[0]; } 477 LOperand* context() { return inputs_[0]; }
477 478
478 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") 479 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
479 DECLARE_HYDROGEN_ACCESSOR(CallStub) 480 DECLARE_HYDROGEN_ACCESSOR(CallStub)
480 }; 481 };
481 482
482 483
484 class LTailCallThroughMegamorphicCache FINAL
485 : public LTemplateInstruction<0, 3, 0> {
486 public:
487 explicit LTailCallThroughMegamorphicCache(LOperand* context,
488 LOperand* receiver,
489 LOperand* name) {
490 inputs_[0] = context;
491 inputs_[1] = receiver;
492 inputs_[2] = name;
493 }
494
495 LOperand* context() { return inputs_[0]; }
496 LOperand* receiver() { return inputs_[1]; }
497 LOperand* name() { return inputs_[2]; }
498
499 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache,
500 "tail-call-through-megamorphic-cache")
501 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache)
502 };
503
504
483 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> { 505 class LUnknownOSRValue FINAL : public LTemplateInstruction<1, 0, 0> {
484 public: 506 public:
485 virtual bool HasInterestingComment(LCodeGen* gen) const OVERRIDE { 507 virtual bool HasInterestingComment(LCodeGen* gen) const OVERRIDE {
486 return false; 508 return false;
487 } 509 }
488 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") 510 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
489 }; 511 };
490 512
491 513
492 template<int I, int T> 514 template<int I, int T>
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2838 2860
2839 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2861 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2840 }; 2862 };
2841 2863
2842 #undef DECLARE_HYDROGEN_ACCESSOR 2864 #undef DECLARE_HYDROGEN_ACCESSOR
2843 #undef DECLARE_CONCRETE_INSTRUCTION 2865 #undef DECLARE_CONCRETE_INSTRUCTION
2844 2866
2845 } } // namespace v8::internal 2867 } } // namespace v8::internal
2846 2868
2847 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2869 #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