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

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

Issue 1702313002: [crankshaft] Remove the useless HAllocateBlockContext 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"
11 #include "src/safepoint-table.h" 11 #include "src/safepoint-table.h"
12 #include "src/utils.h" 12 #include "src/utils.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 // Forward declarations. 17 // Forward declarations.
18 class LCodeGen; 18 class LCodeGen;
19 19
20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ 20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
21 V(AccessArgumentsAt) \ 21 V(AccessArgumentsAt) \
22 V(AddE) \ 22 V(AddE) \
23 V(AddI) \ 23 V(AddI) \
24 V(AddS) \ 24 V(AddS) \
25 V(Allocate) \ 25 V(Allocate) \
26 V(AllocateBlockContext) \
27 V(ApplyArguments) \ 26 V(ApplyArguments) \
28 V(ArgumentsElements) \ 27 V(ArgumentsElements) \
29 V(ArgumentsLength) \ 28 V(ArgumentsLength) \
30 V(ArithmeticD) \ 29 V(ArithmeticD) \
31 V(ArithmeticT) \ 30 V(ArithmeticT) \
32 V(BitI) \ 31 V(BitI) \
33 V(BoundsCheck) \ 32 V(BoundsCheck) \
34 V(Branch) \ 33 V(Branch) \
35 V(CallJSFunction) \ 34 V(CallJSFunction) \
36 V(CallWithDescriptor) \ 35 V(CallWithDescriptor) \
(...skipping 2529 matching lines...) Expand 10 before | Expand all | Expand 10 after
2566 explicit LStoreFrameContext(LOperand* context) { 2565 explicit LStoreFrameContext(LOperand* context) {
2567 inputs_[0] = context; 2566 inputs_[0] = context;
2568 } 2567 }
2569 2568
2570 LOperand* context() { return inputs_[0]; } 2569 LOperand* context() { return inputs_[0]; }
2571 2570
2572 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") 2571 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context")
2573 }; 2572 };
2574 2573
2575 2574
2576 class LAllocateBlockContext: public LTemplateInstruction<1, 2, 0> {
2577 public:
2578 LAllocateBlockContext(LOperand* context, LOperand* function) {
2579 inputs_[0] = context;
2580 inputs_[1] = function;
2581 }
2582
2583 LOperand* context() { return inputs_[0]; }
2584 LOperand* function() { return inputs_[1]; }
2585
2586 Handle<ScopeInfo> scope_info() { return hydrogen()->scope_info(); }
2587
2588 DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext, "allocate-block-context")
2589 DECLARE_HYDROGEN_ACCESSOR(AllocateBlockContext)
2590 };
2591
2592
2593 class LChunkBuilder; 2575 class LChunkBuilder;
2594 class LPlatformChunk final : public LChunk { 2576 class LPlatformChunk final : public LChunk {
2595 public: 2577 public:
2596 LPlatformChunk(CompilationInfo* info, HGraph* graph) 2578 LPlatformChunk(CompilationInfo* info, HGraph* graph)
2597 : LChunk(info, graph) { } 2579 : LChunk(info, graph) { }
2598 2580
2599 int GetNextSpillIndex(RegisterKind kind); 2581 int GetNextSpillIndex(RegisterKind kind);
2600 LOperand* GetNextSpillSlot(RegisterKind kind); 2582 LOperand* GetNextSpillSlot(RegisterKind kind);
2601 }; 2583 };
2602 2584
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2717 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2736 }; 2718 };
2737 2719
2738 #undef DECLARE_HYDROGEN_ACCESSOR 2720 #undef DECLARE_HYDROGEN_ACCESSOR
2739 #undef DECLARE_CONCRETE_INSTRUCTION 2721 #undef DECLARE_CONCRETE_INSTRUCTION
2740 2722
2741 } // namespace internal 2723 } // namespace internal
2742 } // namespace v8 2724 } // namespace v8
2743 2725
2744 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2726 #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