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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 }; 442 };
444 443
445 444
446 class LParameter final : public LTemplateInstruction<1, 0, 0> { 445 class LParameter final : public LTemplateInstruction<1, 0, 0> {
447 public: 446 public:
448 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } 447 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; }
449 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter") 448 DECLARE_CONCRETE_INSTRUCTION(Parameter, "parameter")
450 }; 449 };
451 450
452 451
453 class LCallStub final : public LTemplateInstruction<1, 1, 0> {
454 public:
455 explicit LCallStub(LOperand* context) { inputs_[0] = context; }
456
457 LOperand* context() { return inputs_[0]; }
458
459 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub")
460 DECLARE_HYDROGEN_ACCESSOR(CallStub)
461 };
462
463
464 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { 452 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> {
465 public: 453 public:
466 bool HasInterestingComment(LCodeGen* gen) const override { return false; } 454 bool HasInterestingComment(LCodeGen* gen) const override { return false; }
467 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") 455 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value")
468 }; 456 };
469 457
470 458
471 template <int I, int T> 459 template <int I, int T>
472 class LControlInstruction : public LTemplateInstruction<0, I, T> { 460 class LControlInstruction : public LTemplateInstruction<0, I, T> {
473 public: 461 public:
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 2614
2627 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2615 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2628 }; 2616 };
2629 2617
2630 #undef DECLARE_HYDROGEN_ACCESSOR 2618 #undef DECLARE_HYDROGEN_ACCESSOR
2631 #undef DECLARE_CONCRETE_INSTRUCTION 2619 #undef DECLARE_CONCRETE_INSTRUCTION
2632 } // namespace internal 2620 } // namespace internal
2633 } // namespace v8 2621 } // namespace v8
2634 2622
2635 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2623 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698