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

Side by Side Diff: src/crankshaft/arm/lithium-arm.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 | « no previous file | src/crankshaft/arm/lithium-arm.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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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(CheckNonSmi) \ 40 V(CheckNonSmi) \
42 V(CheckMaps) \ 41 V(CheckMaps) \
43 V(CheckMapValue) \ 42 V(CheckMapValue) \
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 402 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 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2745 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2731 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2746 }; 2732 };
2747 2733
2748 #undef DECLARE_HYDROGEN_ACCESSOR 2734 #undef DECLARE_HYDROGEN_ACCESSOR
2749 #undef DECLARE_CONCRETE_INSTRUCTION 2735 #undef DECLARE_CONCRETE_INSTRUCTION
2750 2736
2751 } // namespace internal 2737 } // namespace internal
2752 } // namespace v8 2738 } // namespace v8
2753 2739
2754 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 2740 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698