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

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

Issue 1970633002: PPC: [crankshaft] Fragmentation-free allocation folding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updated the if-else block 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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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(Dummy) \ 68 V(Dummy) \
69 V(DummyUse) \ 69 V(DummyUse) \
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 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 2311
2311 LOperand* context() { return inputs_[0]; } 2312 LOperand* context() { return inputs_[0]; }
2312 LOperand* size() { return inputs_[1]; } 2313 LOperand* size() { return inputs_[1]; }
2313 LOperand* temp1() { return temps_[0]; } 2314 LOperand* temp1() { return temps_[0]; }
2314 LOperand* temp2() { return temps_[1]; } 2315 LOperand* temp2() { return temps_[1]; }
2315 2316
2316 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 2317 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2317 DECLARE_HYDROGEN_ACCESSOR(Allocate) 2318 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2318 }; 2319 };
2319 2320
2321 class LFastAllocate final : public LTemplateInstruction<1, 1, 2> {
2322 public:
2323 LFastAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) {
2324 inputs_[0] = size;
2325 temps_[0] = temp1;
2326 temps_[1] = temp2;
2327 }
2328
2329 LOperand* size() { return inputs_[0]; }
2330 LOperand* temp1() { return temps_[0]; }
2331 LOperand* temp2() { return temps_[1]; }
2332
2333 DECLARE_CONCRETE_INSTRUCTION(FastAllocate, "fast-allocate")
2334 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2335 };
2336
2320 2337
2321 class LTypeof final : public LTemplateInstruction<1, 2, 0> { 2338 class LTypeof final : public LTemplateInstruction<1, 2, 0> {
2322 public: 2339 public:
2323 LTypeof(LOperand* context, LOperand* value) { 2340 LTypeof(LOperand* context, LOperand* value) {
2324 inputs_[0] = context; 2341 inputs_[0] = context;
2325 inputs_[1] = value; 2342 inputs_[1] = value;
2326 } 2343 }
2327 2344
2328 LOperand* context() { return inputs_[0]; } 2345 LOperand* context() { return inputs_[0]; }
2329 LOperand* value() { return inputs_[1]; } 2346 LOperand* value() { return inputs_[1]; }
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 2584
2568 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2585 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2569 }; 2586 };
2570 2587
2571 #undef DECLARE_HYDROGEN_ACCESSOR 2588 #undef DECLARE_HYDROGEN_ACCESSOR
2572 #undef DECLARE_CONCRETE_INSTRUCTION 2589 #undef DECLARE_CONCRETE_INSTRUCTION
2573 } // namespace internal 2590 } // namespace internal
2574 } // namespace v8 2591 } // namespace v8
2575 2592
2576 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2593 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698