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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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/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"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 V(Deoptimize) \ 60 V(Deoptimize) \
61 V(DivByConstI) \ 61 V(DivByConstI) \
62 V(DivByPowerOf2I) \ 62 V(DivByPowerOf2I) \
63 V(DivI) \ 63 V(DivI) \
64 V(DoubleBits) \ 64 V(DoubleBits) \
65 V(DoubleToI) \ 65 V(DoubleToI) \
66 V(DoubleToSmi) \ 66 V(DoubleToSmi) \
67 V(Drop) \ 67 V(Drop) \
68 V(DummyUse) \ 68 V(DummyUse) \
69 V(Dummy) \ 69 V(Dummy) \
70 V(FastAllocate) \
70 V(FlooringDivByConstI) \ 71 V(FlooringDivByConstI) \
71 V(FlooringDivByPowerOf2I) \ 72 V(FlooringDivByPowerOf2I) \
72 V(FlooringDivI) \ 73 V(FlooringDivI) \
73 V(ForInCacheArray) \ 74 V(ForInCacheArray) \
74 V(ForInPrepareMap) \ 75 V(ForInPrepareMap) \
75 V(GetCachedArrayIndex) \ 76 V(GetCachedArrayIndex) \
76 V(Goto) \ 77 V(Goto) \
77 V(HasCachedArrayIndexAndBranch) \ 78 V(HasCachedArrayIndexAndBranch) \
78 V(HasInPrototypeChainAndBranch) \ 79 V(HasInPrototypeChainAndBranch) \
79 V(HasInstanceTypeAndBranch) \ 80 V(HasInstanceTypeAndBranch) \
(...skipping 2298 matching lines...) Expand 10 before | Expand all | Expand 10 after
2378 } 2379 }
2379 2380
2380 LOperand* context() { return inputs_[0]; } 2381 LOperand* context() { return inputs_[0]; }
2381 LOperand* size() { return inputs_[1]; } 2382 LOperand* size() { return inputs_[1]; }
2382 LOperand* temp() { return temps_[0]; } 2383 LOperand* temp() { return temps_[0]; }
2383 2384
2384 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 2385 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2385 DECLARE_HYDROGEN_ACCESSOR(Allocate) 2386 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2386 }; 2387 };
2387 2388
2389 class LFastAllocate final : public LTemplateInstruction<1, 1, 1> {
2390 public:
2391 LFastAllocate(LOperand* size, LOperand* temp) {
2392 inputs_[0] = size;
2393 temps_[0] = temp;
2394 }
2395
2396 LOperand* size() const { return inputs_[0]; }
2397 LOperand* temp() { return temps_[0]; }
2398
2399 DECLARE_CONCRETE_INSTRUCTION(FastAllocate, "fast-allocate")
2400 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2401 };
2388 2402
2389 class LTypeof final : public LTemplateInstruction<1, 2, 0> { 2403 class LTypeof final : public LTemplateInstruction<1, 2, 0> {
2390 public: 2404 public:
2391 LTypeof(LOperand* context, LOperand* value) { 2405 LTypeof(LOperand* context, LOperand* value) {
2392 inputs_[0] = context; 2406 inputs_[0] = context;
2393 inputs_[1] = value; 2407 inputs_[1] = value;
2394 } 2408 }
2395 2409
2396 LOperand* context() { return inputs_[0]; } 2410 LOperand* context() { return inputs_[0]; }
2397 LOperand* value() { return inputs_[1]; } 2411 LOperand* value() { return inputs_[1]; }
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
2657 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2671 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2658 }; 2672 };
2659 2673
2660 #undef DECLARE_HYDROGEN_ACCESSOR 2674 #undef DECLARE_HYDROGEN_ACCESSOR
2661 #undef DECLARE_CONCRETE_INSTRUCTION 2675 #undef DECLARE_CONCRETE_INSTRUCTION
2662 2676
2663 } // namespace internal 2677 } // namespace internal
2664 } // namespace v8 2678 } // namespace v8
2665 2679
2666 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2680 #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