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

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

Issue 1973883003: S390: [crankshaft] Fragmentation-free allocation folding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use kNear more 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/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/s390/lithium-s390.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_S390_LITHIUM_S390_H_ 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_
6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_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 2078 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 2159
2159 LOperand* context() { return inputs_[0]; } 2160 LOperand* context() { return inputs_[0]; }
2160 LOperand* size() { return inputs_[1]; } 2161 LOperand* size() { return inputs_[1]; }
2161 LOperand* temp1() { return temps_[0]; } 2162 LOperand* temp1() { return temps_[0]; }
2162 LOperand* temp2() { return temps_[1]; } 2163 LOperand* temp2() { return temps_[1]; }
2163 2164
2164 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 2165 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2165 DECLARE_HYDROGEN_ACCESSOR(Allocate) 2166 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2166 }; 2167 };
2167 2168
2169 class LFastAllocate final : public LTemplateInstruction<1, 1, 2> {
2170 public:
2171 LFastAllocate(LOperand* size, LOperand* temp1, LOperand* temp2) {
2172 inputs_[0] = size;
2173 temps_[0] = temp1;
2174 temps_[1] = temp2;
2175 }
2176
2177 LOperand* size() { return inputs_[0]; }
2178 LOperand* temp1() { return temps_[0]; }
2179 LOperand* temp2() { return temps_[1]; }
2180
2181 DECLARE_CONCRETE_INSTRUCTION(FastAllocate, "fast-allocate")
2182 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2183 };
2184
2168 class LTypeof final : public LTemplateInstruction<1, 2, 0> { 2185 class LTypeof final : public LTemplateInstruction<1, 2, 0> {
2169 public: 2186 public:
2170 LTypeof(LOperand* context, LOperand* value) { 2187 LTypeof(LOperand* context, LOperand* value) {
2171 inputs_[0] = context; 2188 inputs_[0] = context;
2172 inputs_[1] = value; 2189 inputs_[1] = value;
2173 } 2190 }
2174 2191
2175 LOperand* context() { return inputs_[0]; } 2192 LOperand* context() { return inputs_[0]; }
2176 LOperand* value() { return inputs_[1]; } 2193 LOperand* value() { return inputs_[1]; }
2177 2194
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
2405 2422
2406 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2423 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2407 }; 2424 };
2408 2425
2409 #undef DECLARE_HYDROGEN_ACCESSOR 2426 #undef DECLARE_HYDROGEN_ACCESSOR
2410 #undef DECLARE_CONCRETE_INSTRUCTION 2427 #undef DECLARE_CONCRETE_INSTRUCTION
2411 } // namespace internal 2428 } // namespace internal
2412 } // namespace v8 2429 } // namespace v8
2413 2430
2414 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 2431 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/s390/lithium-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698