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

Side by Side Diff: src/mips/lithium-mips.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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_
6 #define V8_MIPS_LITHIUM_MIPS_H_ 6 #define V8_MIPS_LITHIUM_MIPS_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(MathExp) \ 111 V(MathExp) \
112 V(MathClz32) \ 112 V(MathClz32) \
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(NumberTagD) \ 126 V(NumberTagD) \
126 V(NumberTagI) \ 127 V(NumberTagI) \
127 V(NumberTagU) \ 128 V(NumberTagU) \
128 V(NumberUntagD) \ 129 V(NumberUntagD) \
129 V(OsrEntry) \ 130 V(OsrEntry) \
(...skipping 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2268 } 2269 }
2269 2270
2270 LOperand* object() { return inputs_[0]; } 2271 LOperand* object() { return inputs_[0]; }
2271 LOperand* temp() { return temps_[0]; } 2272 LOperand* temp() { return temps_[0]; }
2272 2273
2273 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, 2274 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento,
2274 "trap-allocation-memento") 2275 "trap-allocation-memento")
2275 }; 2276 };
2276 2277
2277 2278
2279 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> {
2280 public:
2281 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements,
2282 LOperand* key, LOperand* current_capacity) {
2283 inputs_[0] = context;
2284 inputs_[1] = object;
2285 inputs_[2] = elements;
2286 inputs_[3] = key;
2287 inputs_[4] = current_capacity;
2288 }
2289
2290 LOperand* context() { return inputs_[0]; }
2291 LOperand* object() { return inputs_[1]; }
2292 LOperand* elements() { return inputs_[2]; }
2293 LOperand* key() { return inputs_[3]; }
2294 LOperand* current_capacity() { return inputs_[4]; }
2295
2296 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements)
2297 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements")
2298 };
2299
2300
2278 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { 2301 class LStringAdd final : public LTemplateInstruction<1, 3, 0> {
2279 public: 2302 public:
2280 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { 2303 LStringAdd(LOperand* context, LOperand* left, LOperand* right) {
2281 inputs_[0] = context; 2304 inputs_[0] = context;
2282 inputs_[1] = left; 2305 inputs_[1] = left;
2283 inputs_[2] = right; 2306 inputs_[2] = right;
2284 } 2307 }
2285 2308
2286 LOperand* context() { return inputs_[0]; } 2309 LOperand* context() { return inputs_[0]; }
2287 LOperand* left() { return inputs_[1]; } 2310 LOperand* left() { return inputs_[1]; }
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
2831 2854
2832 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2855 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2833 }; 2856 };
2834 2857
2835 #undef DECLARE_HYDROGEN_ACCESSOR 2858 #undef DECLARE_HYDROGEN_ACCESSOR
2836 #undef DECLARE_CONCRETE_INSTRUCTION 2859 #undef DECLARE_CONCRETE_INSTRUCTION
2837 2860
2838 } } // namespace v8::internal 2861 } } // namespace v8::internal
2839 2862
2840 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2863 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698