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

Side by Side Diff: src/arm/lithium-arm.h

Issue 1124443004: New hydrogen instruction to reduce cost of growing an array on keyed stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 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/arm/interface-descriptors-arm.cc ('k') | src/arm/lithium-arm.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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_ARM_H_
6 #define V8_ARM_LITHIUM_ARM_H_ 6 #define V8_ARM_LITHIUM_ARM_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 V(MathAbs) \ 110 V(MathAbs) \
111 V(MathClz32) \ 111 V(MathClz32) \
112 V(MathExp) \ 112 V(MathExp) \
113 V(MathFloor) \ 113 V(MathFloor) \
114 V(MathFround) \ 114 V(MathFround) \
115 V(MathLog) \ 115 V(MathLog) \
116 V(MathMinMax) \ 116 V(MathMinMax) \
117 V(MathPowHalf) \ 117 V(MathPowHalf) \
118 V(MathRound) \ 118 V(MathRound) \
119 V(MathSqrt) \ 119 V(MathSqrt) \
120 V(MaybeGrowElements) \
120 V(ModByConstI) \ 121 V(ModByConstI) \
121 V(ModByPowerOf2I) \ 122 V(ModByPowerOf2I) \
122 V(ModI) \ 123 V(ModI) \
123 V(MulI) \ 124 V(MulI) \
124 V(MultiplyAddD) \ 125 V(MultiplyAddD) \
125 V(MultiplySubD) \ 126 V(MultiplySubD) \
126 V(NumberTagD) \ 127 V(NumberTagD) \
127 V(NumberTagI) \ 128 V(NumberTagI) \
128 V(NumberTagU) \ 129 V(NumberTagU) \
129 V(NumberUntagD) \ 130 V(NumberUntagD) \
(...skipping 2181 matching lines...) Expand 10 before | Expand all | Expand 10 after
2311 } 2312 }
2312 2313
2313 LOperand* object() { return inputs_[0]; } 2314 LOperand* object() { return inputs_[0]; }
2314 LOperand* temp() { return temps_[0]; } 2315 LOperand* temp() { return temps_[0]; }
2315 2316
2316 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, 2317 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento,
2317 "trap-allocation-memento") 2318 "trap-allocation-memento")
2318 }; 2319 };
2319 2320
2320 2321
2322 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> {
2323 public:
2324 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements,
2325 LOperand* key, LOperand* current_capacity) {
2326 inputs_[0] = context;
2327 inputs_[1] = object;
2328 inputs_[2] = elements;
2329 inputs_[3] = key;
2330 inputs_[4] = current_capacity;
2331 }
2332
2333 LOperand* context() { return inputs_[0]; }
2334 LOperand* object() { return inputs_[1]; }
2335 LOperand* elements() { return inputs_[2]; }
2336 LOperand* key() { return inputs_[3]; }
2337 LOperand* current_capacity() { return inputs_[4]; }
2338
2339 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements)
2340 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements")
2341 };
2342
2343
2321 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { 2344 class LStringAdd final : public LTemplateInstruction<1, 3, 0> {
2322 public: 2345 public:
2323 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { 2346 LStringAdd(LOperand* context, LOperand* left, LOperand* right) {
2324 inputs_[0] = context; 2347 inputs_[0] = context;
2325 inputs_[1] = left; 2348 inputs_[1] = left;
2326 inputs_[2] = right; 2349 inputs_[2] = right;
2327 } 2350 }
2328 2351
2329 LOperand* context() { return inputs_[0]; } 2352 LOperand* context() { return inputs_[0]; }
2330 LOperand* left() { return inputs_[1]; } 2353 LOperand* left() { return inputs_[1]; }
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
2873 2896
2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2897 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2875 }; 2898 };
2876 2899
2877 #undef DECLARE_HYDROGEN_ACCESSOR 2900 #undef DECLARE_HYDROGEN_ACCESSOR
2878 #undef DECLARE_CONCRETE_INSTRUCTION 2901 #undef DECLARE_CONCRETE_INSTRUCTION
2879 2902
2880 } } // namespace v8::internal 2903 } } // namespace v8::internal
2881 2904
2882 #endif // V8_ARM_LITHIUM_ARM_H_ 2905 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/interface-descriptors-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698