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

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

Issue 1899813003: [crankshaft] Fragmentation-free allocation folding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.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_X87_LITHIUM_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 V(Deoptimize) \ 65 V(Deoptimize) \
66 V(DivByConstI) \ 66 V(DivByConstI) \
67 V(DivByPowerOf2I) \ 67 V(DivByPowerOf2I) \
68 V(DivI) \ 68 V(DivI) \
69 V(DoubleBits) \ 69 V(DoubleBits) \
70 V(DoubleToI) \ 70 V(DoubleToI) \
71 V(DoubleToSmi) \ 71 V(DoubleToSmi) \
72 V(Drop) \ 72 V(Drop) \
73 V(Dummy) \ 73 V(Dummy) \
74 V(DummyUse) \ 74 V(DummyUse) \
75 V(FastAllocate) \
75 V(FlooringDivByConstI) \ 76 V(FlooringDivByConstI) \
76 V(FlooringDivByPowerOf2I) \ 77 V(FlooringDivByPowerOf2I) \
77 V(FlooringDivI) \ 78 V(FlooringDivI) \
78 V(ForInCacheArray) \ 79 V(ForInCacheArray) \
79 V(ForInPrepareMap) \ 80 V(ForInPrepareMap) \
80 V(GetCachedArrayIndex) \ 81 V(GetCachedArrayIndex) \
81 V(Goto) \ 82 V(Goto) \
82 V(HasCachedArrayIndexAndBranch) \ 83 V(HasCachedArrayIndexAndBranch) \
83 V(HasInPrototypeChainAndBranch) \ 84 V(HasInPrototypeChainAndBranch) \
84 V(HasInstanceTypeAndBranch) \ 85 V(HasInstanceTypeAndBranch) \
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 V(TaggedToI) \ 147 V(TaggedToI) \
147 V(ThisFunction) \ 148 V(ThisFunction) \
148 V(TransitionElementsKind) \ 149 V(TransitionElementsKind) \
149 V(TrapAllocationMemento) \ 150 V(TrapAllocationMemento) \
150 V(Typeof) \ 151 V(Typeof) \
151 V(TypeofIsAndBranch) \ 152 V(TypeofIsAndBranch) \
152 V(Uint32ToDouble) \ 153 V(Uint32ToDouble) \
153 V(UnknownOSRValue) \ 154 V(UnknownOSRValue) \
154 V(WrapReceiver) 155 V(WrapReceiver)
155 156
156
157 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 157 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
158 Opcode opcode() const final { return LInstruction::k##type; } \ 158 Opcode opcode() const final { return LInstruction::k##type; } \
159 void CompileToNative(LCodeGen* generator) final; \ 159 void CompileToNative(LCodeGen* generator) final; \
160 const char* Mnemonic() const final { return mnemonic; } \ 160 const char* Mnemonic() const final { return mnemonic; } \
161 static L##type* cast(LInstruction* instr) { \ 161 static L##type* cast(LInstruction* instr) { \
162 DCHECK(instr->Is##type()); \ 162 DCHECK(instr->Is##type()); \
163 return reinterpret_cast<L##type*>(instr); \ 163 return reinterpret_cast<L##type*>(instr); \
164 } 164 }
165 165
166 166
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2391 } 2391 }
2392 2392
2393 LOperand* context() { return inputs_[0]; } 2393 LOperand* context() { return inputs_[0]; }
2394 LOperand* size() { return inputs_[1]; } 2394 LOperand* size() { return inputs_[1]; }
2395 LOperand* temp() { return temps_[0]; } 2395 LOperand* temp() { return temps_[0]; }
2396 2396
2397 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 2397 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2398 DECLARE_HYDROGEN_ACCESSOR(Allocate) 2398 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2399 }; 2399 };
2400 2400
2401 class LFastAllocate final : public LTemplateInstruction<1, 1, 1> {
2402 public:
2403 LFastAllocate(LOperand* size, LOperand* temp) {
2404 inputs_[0] = size;
2405 temps_[0] = temp;
2406 }
2407
2408 LOperand* size() const { return inputs_[0]; }
2409 LOperand* temp() { return temps_[0]; }
2410
2411 DECLARE_CONCRETE_INSTRUCTION(FastAllocate, "fast-allocate")
2412 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2413 };
2401 2414
2402 class LTypeof final : public LTemplateInstruction<1, 2, 0> { 2415 class LTypeof final : public LTemplateInstruction<1, 2, 0> {
2403 public: 2416 public:
2404 LTypeof(LOperand* context, LOperand* value) { 2417 LTypeof(LOperand* context, LOperand* value) {
2405 inputs_[0] = context; 2418 inputs_[0] = context;
2406 inputs_[1] = value; 2419 inputs_[1] = value;
2407 } 2420 }
2408 2421
2409 LOperand* context() { return inputs_[0]; } 2422 LOperand* context() { return inputs_[0]; }
2410 LOperand* value() { return inputs_[1]; } 2423 LOperand* value() { return inputs_[1]; }
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2681 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2669 }; 2682 };
2670 2683
2671 #undef DECLARE_HYDROGEN_ACCESSOR 2684 #undef DECLARE_HYDROGEN_ACCESSOR
2672 #undef DECLARE_CONCRETE_INSTRUCTION 2685 #undef DECLARE_CONCRETE_INSTRUCTION
2673 2686
2674 } // namespace internal 2687 } // namespace internal
2675 } // namespace v8 2688 } // namespace v8
2676 2689
2677 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 2690 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698