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

Side by Side Diff: src/crankshaft/ia32/lithium-ia32.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/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"
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 namespace compiler { 17 namespace compiler {
18 class RCodeVisualizer; 18 class RCodeVisualizer;
19 } 19 }
20 20
21 // Forward declarations. 21 // Forward declarations.
22 class LCodeGen; 22 class LCodeGen;
23 23
24 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ 24 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \
25 V(AccessArgumentsAt) \ 25 V(AccessArgumentsAt) \
26 V(AddI) \ 26 V(AddI) \
27 V(AllocateBlockContext) \
28 V(Allocate) \ 27 V(Allocate) \
29 V(ApplyArguments) \ 28 V(ApplyArguments) \
30 V(ArgumentsElements) \ 29 V(ArgumentsElements) \
31 V(ArgumentsLength) \ 30 V(ArgumentsLength) \
32 V(ArithmeticD) \ 31 V(ArithmeticD) \
33 V(ArithmeticT) \ 32 V(ArithmeticT) \
34 V(BitI) \ 33 V(BitI) \
35 V(BoundsCheck) \ 34 V(BoundsCheck) \
36 V(Branch) \ 35 V(Branch) \
37 V(CallJSFunction) \ 36 V(CallJSFunction) \
(...skipping 2510 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 explicit LStoreFrameContext(LOperand* context) { 2547 explicit LStoreFrameContext(LOperand* context) {
2549 inputs_[0] = context; 2548 inputs_[0] = context;
2550 } 2549 }
2551 2550
2552 LOperand* context() { return inputs_[0]; } 2551 LOperand* context() { return inputs_[0]; }
2553 2552
2554 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") 2553 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context")
2555 }; 2554 };
2556 2555
2557 2556
2558 class LAllocateBlockContext: public LTemplateInstruction<1, 2, 0> {
2559 public:
2560 LAllocateBlockContext(LOperand* context, LOperand* function) {
2561 inputs_[0] = context;
2562 inputs_[1] = function;
2563 }
2564
2565 LOperand* context() { return inputs_[0]; }
2566 LOperand* function() { return inputs_[1]; }
2567
2568 Handle<ScopeInfo> scope_info() { return hydrogen()->scope_info(); }
2569
2570 DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext, "allocate-block-context")
2571 DECLARE_HYDROGEN_ACCESSOR(AllocateBlockContext)
2572 };
2573
2574
2575 class LChunkBuilder; 2557 class LChunkBuilder;
2576 class LPlatformChunk final : public LChunk { 2558 class LPlatformChunk final : public LChunk {
2577 public: 2559 public:
2578 LPlatformChunk(CompilationInfo* info, HGraph* graph) 2560 LPlatformChunk(CompilationInfo* info, HGraph* graph)
2579 : LChunk(info, graph), 2561 : LChunk(info, graph),
2580 num_double_slots_(0) { } 2562 num_double_slots_(0) { }
2581 2563
2582 int GetNextSpillIndex(RegisterKind kind); 2564 int GetNextSpillIndex(RegisterKind kind);
2583 LOperand* GetNextSpillSlot(RegisterKind kind); 2565 LOperand* GetNextSpillSlot(RegisterKind kind);
2584 2566
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
2729 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2711 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2730 }; 2712 };
2731 2713
2732 #undef DECLARE_HYDROGEN_ACCESSOR 2714 #undef DECLARE_HYDROGEN_ACCESSOR
2733 #undef DECLARE_CONCRETE_INSTRUCTION 2715 #undef DECLARE_CONCRETE_INSTRUCTION
2734 2716
2735 } // namespace internal 2717 } // namespace internal
2736 } // namespace v8 2718 } // namespace v8
2737 2719
2738 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ 2720 #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