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

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

Issue 1475823003: [runtime] First step to sanitize regexp literal creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 V(MulS) \ 131 V(MulS) \
132 V(NumberTagD) \ 132 V(NumberTagD) \
133 V(NumberTagU) \ 133 V(NumberTagU) \
134 V(NumberUntagD) \ 134 V(NumberUntagD) \
135 V(OsrEntry) \ 135 V(OsrEntry) \
136 V(Parameter) \ 136 V(Parameter) \
137 V(Power) \ 137 V(Power) \
138 V(Prologue) \ 138 V(Prologue) \
139 V(PreparePushArguments) \ 139 V(PreparePushArguments) \
140 V(PushArguments) \ 140 V(PushArguments) \
141 V(RegExpLiteral) \
142 V(Return) \ 141 V(Return) \
143 V(SeqStringGetChar) \ 142 V(SeqStringGetChar) \
144 V(SeqStringSetChar) \ 143 V(SeqStringSetChar) \
145 V(ShiftI) \ 144 V(ShiftI) \
146 V(ShiftS) \ 145 V(ShiftS) \
147 V(SmiTag) \ 146 V(SmiTag) \
148 V(SmiUntag) \ 147 V(SmiUntag) \
149 V(StackCheck) \ 148 V(StackCheck) \
150 V(StoreCodeEntry) \ 149 V(StoreCodeEntry) \
151 V(StoreContextSlot) \ 150 V(StoreContextSlot) \
(...skipping 2110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 private: 2261 private:
2263 // Iterator support. 2262 // Iterator support.
2264 int InputCount() final { return inputs_.length(); } 2263 int InputCount() final { return inputs_.length(); }
2265 LOperand* InputAt(int i) final { return inputs_[i]; } 2264 LOperand* InputAt(int i) final { return inputs_[i]; }
2266 2265
2267 int TempCount() final { return 0; } 2266 int TempCount() final { return 0; }
2268 LOperand* TempAt(int i) final { return NULL; } 2267 LOperand* TempAt(int i) final { return NULL; }
2269 }; 2268 };
2270 2269
2271 2270
2272 class LRegExpLiteral final : public LTemplateInstruction<1, 1, 0> {
2273 public:
2274 explicit LRegExpLiteral(LOperand* context) {
2275 inputs_[0] = context;
2276 }
2277
2278 LOperand* context() { return inputs_[0]; }
2279
2280 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
2281 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
2282 };
2283
2284
2285 class LReturn final : public LTemplateInstruction<0, 3, 0> { 2271 class LReturn final : public LTemplateInstruction<0, 3, 0> {
2286 public: 2272 public:
2287 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) { 2273 LReturn(LOperand* value, LOperand* context, LOperand* parameter_count) {
2288 inputs_[0] = value; 2274 inputs_[0] = value;
2289 inputs_[1] = context; 2275 inputs_[1] = context;
2290 inputs_[2] = parameter_count; 2276 inputs_[2] = parameter_count;
2291 } 2277 }
2292 2278
2293 LOperand* value() { return inputs_[0]; } 2279 LOperand* value() { return inputs_[0]; }
2294 LOperand* parameter_count() { return inputs_[2]; } 2280 LOperand* parameter_count() { return inputs_[2]; }
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
3191 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3177 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3192 }; 3178 };
3193 3179
3194 #undef DECLARE_HYDROGEN_ACCESSOR 3180 #undef DECLARE_HYDROGEN_ACCESSOR
3195 #undef DECLARE_CONCRETE_INSTRUCTION 3181 #undef DECLARE_CONCRETE_INSTRUCTION
3196 3182
3197 } // namespace internal 3183 } // namespace internal
3198 } // namespace v8 3184 } // namespace v8
3199 3185
3200 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 3186 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698