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

Side by Side Diff: src/crankshaft/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.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_IA32_LITHIUM_IA32_H_ 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 21 matching lines...) Expand all
32 V(ArithmeticD) \ 32 V(ArithmeticD) \
33 V(ArithmeticT) \ 33 V(ArithmeticT) \
34 V(BitI) \ 34 V(BitI) \
35 V(BoundsCheck) \ 35 V(BoundsCheck) \
36 V(Branch) \ 36 V(Branch) \
37 V(CallJSFunction) \ 37 V(CallJSFunction) \
38 V(CallWithDescriptor) \ 38 V(CallWithDescriptor) \
39 V(CallFunction) \ 39 V(CallFunction) \
40 V(CallNewArray) \ 40 V(CallNewArray) \
41 V(CallRuntime) \ 41 V(CallRuntime) \
42 V(CallStub) \
43 V(CheckArrayBufferNotNeutered) \ 42 V(CheckArrayBufferNotNeutered) \
44 V(CheckInstanceType) \ 43 V(CheckInstanceType) \
45 V(CheckMaps) \ 44 V(CheckMaps) \
46 V(CheckMapValue) \ 45 V(CheckMapValue) \
47 V(CheckNonSmi) \ 46 V(CheckNonSmi) \
48 V(CheckSmi) \ 47 V(CheckSmi) \
49 V(CheckValue) \ 48 V(CheckValue) \
50 V(ClampDToUint8) \ 49 V(ClampDToUint8) \
51 V(ClampIToUint8) \ 50 V(ClampIToUint8) \
52 V(ClampTToUint8) \ 51 V(ClampTToUint8) \
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 }; 445 };
447 446
448 447
449 class LParameter final : public LTemplateInstruction<1, 0, 0> { 448 class LParameter final : public LTemplateInstruction<1, 0, 0> {
450 public: 449 public:
451 bool HasInterestingComment(LCodeGen* gen) const override { return false; } 450 bool HasInterestingComment(LCodeGen* gen) const override { return false; }
452 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter") 451 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
453 }; 452 };
454 453
455 454
456 class LCallStub final : public LTemplateInstruction<1, 1, 0> {
457 public:
458 explicit LCallStub(LOperand* context) {
459 inputs_[0] = context;
460 }
461
462 LOperand* context() { return inputs_[0]; }
463
464 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
465 DECLARE_HYDROGEN_ACCESSOR(CallStub)
466 };
467
468
469 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { 455 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> {
470 public: 456 public:
471 bool HasInterestingComment(LCodeGen* gen) const override { return false; } 457 bool HasInterestingComment(LCodeGen* gen) const override { return false; }
472 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") 458 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
473 }; 459 };
474 460
475 461
476 template<int I, int T> 462 template<int I, int T>
477 class LControlInstruction: public LTemplateInstruction<0, I, T> { 463 class LControlInstruction: public LTemplateInstruction<0, I, T> {
478 public: 464 public:
(...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2743 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2729 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2744 }; 2730 };
2745 2731
2746 #undef DECLARE_HYDROGEN_ACCESSOR 2732 #undef DECLARE_HYDROGEN_ACCESSOR
2747 #undef DECLARE_CONCRETE_INSTRUCTION 2733 #undef DECLARE_CONCRETE_INSTRUCTION
2748 2734
2749 } // namespace internal 2735 } // namespace internal
2750 } // namespace v8 2736 } // namespace v8
2751 2737
2752 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 2738 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698