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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.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_X64_LITHIUM_X64_H_ 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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(AddI) \ 22 V(AddI) \
23 V(Allocate) \ 23 V(Allocate) \
24 V(AllocateBlockContext) \
25 V(ApplyArguments) \ 24 V(ApplyArguments) \
26 V(ArgumentsElements) \ 25 V(ArgumentsElements) \
27 V(ArgumentsLength) \ 26 V(ArgumentsLength) \
28 V(ArithmeticD) \ 27 V(ArithmeticD) \
29 V(ArithmeticT) \ 28 V(ArithmeticT) \
30 V(BitI) \ 29 V(BitI) \
31 V(BoundsCheck) \ 30 V(BoundsCheck) \
32 V(Branch) \ 31 V(Branch) \
33 V(CallJSFunction) \ 32 V(CallJSFunction) \
34 V(CallWithDescriptor) \ 33 V(CallWithDescriptor) \
(...skipping 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2534 explicit LStoreFrameContext(LOperand* context) { 2533 explicit LStoreFrameContext(LOperand* context) {
2535 inputs_[0] = context; 2534 inputs_[0] = context;
2536 } 2535 }
2537 2536
2538 LOperand* context() { return inputs_[0]; } 2537 LOperand* context() { return inputs_[0]; }
2539 2538
2540 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") 2539 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context")
2541 }; 2540 };
2542 2541
2543 2542
2544 class LAllocateBlockContext: public LTemplateInstruction<1, 2, 0> {
2545 public:
2546 LAllocateBlockContext(LOperand* context, LOperand* function) {
2547 inputs_[0] = context;
2548 inputs_[1] = function;
2549 }
2550
2551 LOperand* context() { return inputs_[0]; }
2552 LOperand* function() { return inputs_[1]; }
2553
2554 Handle<ScopeInfo> scope_info() { return hydrogen()->scope_info(); }
2555
2556 DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext, "allocate-block-context")
2557 DECLARE_HYDROGEN_ACCESSOR(AllocateBlockContext)
2558 };
2559
2560
2561 class LChunkBuilder; 2543 class LChunkBuilder;
2562 class LPlatformChunk final : public LChunk { 2544 class LPlatformChunk final : public LChunk {
2563 public: 2545 public:
2564 LPlatformChunk(CompilationInfo* info, HGraph* graph) 2546 LPlatformChunk(CompilationInfo* info, HGraph* graph)
2565 : LChunk(info, graph), 2547 : LChunk(info, graph),
2566 dehoisted_key_ids_(graph->GetMaximumValueID(), graph->zone()) { } 2548 dehoisted_key_ids_(graph->GetMaximumValueID(), graph->zone()) { }
2567 2549
2568 int GetNextSpillIndex(RegisterKind kind); 2550 int GetNextSpillIndex(RegisterKind kind);
2569 LOperand* GetNextSpillSlot(RegisterKind kind); 2551 LOperand* GetNextSpillSlot(RegisterKind kind);
2570 BitVector* GetDehoistedKeyIds() { return &dehoisted_key_ids_; } 2552 BitVector* GetDehoistedKeyIds() { return &dehoisted_key_ids_; }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
2713 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2695 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2714 }; 2696 };
2715 2697
2716 #undef DECLARE_HYDROGEN_ACCESSOR 2698 #undef DECLARE_HYDROGEN_ACCESSOR
2717 #undef DECLARE_CONCRETE_INSTRUCTION 2699 #undef DECLARE_CONCRETE_INSTRUCTION
2718 2700
2719 } // namespace internal 2701 } // namespace internal
2720 } // namespace v8 2702 } // namespace v8
2721 2703
2722 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2704 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/crankshaft/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698