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

Side by Side Diff: src/crankshaft/arm/lithium-arm.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 | « 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"
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 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after
2561 explicit LStoreFrameContext(LOperand* context) { 2560 explicit LStoreFrameContext(LOperand* context) {
2562 inputs_[0] = context; 2561 inputs_[0] = context;
2563 } 2562 }
2564 2563
2565 LOperand* context() { return inputs_[0]; } 2564 LOperand* context() { return inputs_[0]; }
2566 2565
2567 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") 2566 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context")
2568 }; 2567 };
2569 2568
2570 2569
2571 class LAllocateBlockContext: public LTemplateInstruction<1, 2, 0> {
2572 public:
2573 LAllocateBlockContext(LOperand* context, LOperand* function) {
2574 inputs_[0] = context;
2575 inputs_[1] = function;
2576 }
2577
2578 LOperand* context() { return inputs_[0]; }
2579 LOperand* function() { return inputs_[1]; }
2580
2581 Handle<ScopeInfo> scope_info() { return hydrogen()->scope_info(); }
2582
2583 DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext, "allocate-block-context")
2584 DECLARE_HYDROGEN_ACCESSOR(AllocateBlockContext)
2585 };
2586
2587
2588 class LChunkBuilder; 2570 class LChunkBuilder;
2589 class LPlatformChunk final : public LChunk { 2571 class LPlatformChunk final : public LChunk {
2590 public: 2572 public:
2591 LPlatformChunk(CompilationInfo* info, HGraph* graph) 2573 LPlatformChunk(CompilationInfo* info, HGraph* graph)
2592 : LChunk(info, graph) { } 2574 : LChunk(info, graph) { }
2593 2575
2594 int GetNextSpillIndex(RegisterKind kind); 2576 int GetNextSpillIndex(RegisterKind kind);
2595 LOperand* GetNextSpillSlot(RegisterKind kind); 2577 LOperand* GetNextSpillSlot(RegisterKind kind);
2596 }; 2578 };
2597 2579
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
2731 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2713 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2732 }; 2714 };
2733 2715
2734 #undef DECLARE_HYDROGEN_ACCESSOR 2716 #undef DECLARE_HYDROGEN_ACCESSOR
2735 #undef DECLARE_CONCRETE_INSTRUCTION 2717 #undef DECLARE_CONCRETE_INSTRUCTION
2736 2718
2737 } // namespace internal 2719 } // namespace internal
2738 } // namespace v8 2720 } // namespace v8
2739 2721
2740 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 2722 #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