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

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

Issue 1705633004: [crankshaft] Remove the useless HCallStub instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
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_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 19 matching lines...) Expand all
30 V(ArithmeticD) \ 30 V(ArithmeticD) \
31 V(ArithmeticT) \ 31 V(ArithmeticT) \
32 V(BitI) \ 32 V(BitI) \
33 V(BoundsCheck) \ 33 V(BoundsCheck) \
34 V(Branch) \ 34 V(Branch) \
35 V(CallJSFunction) \ 35 V(CallJSFunction) \
36 V(CallWithDescriptor) \ 36 V(CallWithDescriptor) \
37 V(CallFunction) \ 37 V(CallFunction) \
38 V(CallNewArray) \ 38 V(CallNewArray) \
39 V(CallRuntime) \ 39 V(CallRuntime) \
40 V(CallStub) \
41 V(CheckArrayBufferNotNeutered) \ 40 V(CheckArrayBufferNotNeutered) \
42 V(CheckInstanceType) \ 41 V(CheckInstanceType) \
43 V(CheckMaps) \ 42 V(CheckMaps) \
44 V(CheckMapValue) \ 43 V(CheckMapValue) \
45 V(CheckNonSmi) \ 44 V(CheckNonSmi) \
46 V(CheckSmi) \ 45 V(CheckSmi) \
47 V(CheckValue) \ 46 V(CheckValue) \
48 V(ClampDToUint8) \ 47 V(ClampDToUint8) \
49 V(ClampIToUint8) \ 48 V(ClampIToUint8) \
50 V(ClampTToUint8) \ 49 V(ClampTToUint8) \
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 }; 450 };
452 451
453 452
454 class LParameter final : public LTemplateInstruction<1, 0, 0> { 453 class LParameter final : public LTemplateInstruction<1, 0, 0> {
455 public: 454 public:
456 bool HasInterestingComment(LCodeGen* gen) const override { return false; } 455 bool HasInterestingComment(LCodeGen* gen) const override { return false; }
457 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter") 456 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
458 }; 457 };
459 458
460 459
461 class LCallStub final : public LTemplateInstruction<1, 1, 0> {
462 public:
463 explicit LCallStub(LOperand* context) {
464 inputs_[0] = context;
465 }
466
467 LOperand* context() { return inputs_[0]; }
468
469 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
470 DECLARE_HYDROGEN_ACCESSOR(CallStub)
471 };
472
473
474 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { 460 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> {
475 public: 461 public:
476 bool HasInterestingComment(LCodeGen* gen) const override { return false; } 462 bool HasInterestingComment(LCodeGen* gen) const override { return false; }
477 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") 463 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
478 }; 464 };
479 465
480 466
481 template<int I, int T> 467 template<int I, int T>
482 class LControlInstruction : public LTemplateInstruction<0, I, T> { 468 class LControlInstruction : public LTemplateInstruction<0, I, T> {
483 public: 469 public:
(...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2735 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2750 }; 2736 };
2751 2737
2752 #undef DECLARE_HYDROGEN_ACCESSOR 2738 #undef DECLARE_HYDROGEN_ACCESSOR
2753 #undef DECLARE_CONCRETE_INSTRUCTION 2739 #undef DECLARE_CONCRETE_INSTRUCTION
2754 2740
2755 } // namespace internal 2741 } // namespace internal
2756 } // namespace v8 2742 } // namespace v8
2757 2743
2758 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2744 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698