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/crankshaft/mips/lithium-mips.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
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.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_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS_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 17 matching lines...) Expand all
28 V(ArithmeticD) \ 28 V(ArithmeticD) \
29 V(ArithmeticT) \ 29 V(ArithmeticT) \
30 V(BitI) \ 30 V(BitI) \
31 V(BoundsCheck) \ 31 V(BoundsCheck) \
32 V(Branch) \ 32 V(Branch) \
33 V(CallJSFunction) \ 33 V(CallJSFunction) \
34 V(CallWithDescriptor) \ 34 V(CallWithDescriptor) \
35 V(CallFunction) \ 35 V(CallFunction) \
36 V(CallNewArray) \ 36 V(CallNewArray) \
37 V(CallRuntime) \ 37 V(CallRuntime) \
38 V(CallStub) \
39 V(CheckArrayBufferNotNeutered) \ 38 V(CheckArrayBufferNotNeutered) \
40 V(CheckInstanceType) \ 39 V(CheckInstanceType) \
41 V(CheckMaps) \ 40 V(CheckMaps) \
42 V(CheckMapValue) \ 41 V(CheckMapValue) \
43 V(CheckNonSmi) \ 42 V(CheckNonSmi) \
44 V(CheckSmi) \ 43 V(CheckSmi) \
45 V(CheckValue) \ 44 V(CheckValue) \
46 V(ClampDToUint8) \ 45 V(ClampDToUint8) \
47 V(ClampIToUint8) \ 46 V(ClampIToUint8) \
48 V(ClampTToUint8) \ 47 V(ClampTToUint8) \
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 }; 447 };
449 448
450 449
451 class LParameter final : public LTemplateInstruction<1, 0, 0> { 450 class LParameter final : public LTemplateInstruction<1, 0, 0> {
452 public: 451 public:
453 bool HasInterestingComment(LCodeGen* gen) const override { return false; } 452 bool HasInterestingComment(LCodeGen* gen) const override { return false; }
454 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter") 453 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
455 }; 454 };
456 455
457 456
458 class LCallStub final : public LTemplateInstruction<1, 1, 0> {
459 public:
460 explicit LCallStub(LOperand* context) {
461 inputs_[0] = context;
462 }
463
464 LOperand* context() { return inputs_[0]; }
465
466 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
467 DECLARE_HYDROGEN_ACCESSOR(CallStub)
468 };
469
470
471 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { 457 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> {
472 public: 458 public:
473 bool HasInterestingComment(LCodeGen* gen) const override { return false; } 459 bool HasInterestingComment(LCodeGen* gen) const override { return false; }
474 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") 460 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
475 }; 461 };
476 462
477 463
478 template<int I, int T> 464 template<int I, int T>
479 class LControlInstruction : public LTemplateInstruction<0, I, T> { 465 class LControlInstruction : public LTemplateInstruction<0, I, T> {
480 public: 466 public:
(...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after
2703 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2689 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2704 }; 2690 };
2705 2691
2706 #undef DECLARE_HYDROGEN_ACCESSOR 2692 #undef DECLARE_HYDROGEN_ACCESSOR
2707 #undef DECLARE_CONCRETE_INSTRUCTION 2693 #undef DECLARE_CONCRETE_INSTRUCTION
2708 2694
2709 } // namespace internal 2695 } // namespace internal
2710 } // namespace v8 2696 } // namespace v8
2711 2697
2712 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 2698 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698