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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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 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_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 V(MulS) \ 124 V(MulS) \
125 V(MultiplyAddD) \ 125 V(MultiplyAddD) \
126 V(NumberTagD) \ 126 V(NumberTagD) \
127 V(NumberTagU) \ 127 V(NumberTagU) \
128 V(NumberUntagD) \ 128 V(NumberUntagD) \
129 V(OsrEntry) \ 129 V(OsrEntry) \
130 V(Parameter) \ 130 V(Parameter) \
131 V(Power) \ 131 V(Power) \
132 V(Prologue) \ 132 V(Prologue) \
133 V(PushArgument) \ 133 V(PushArgument) \
134 V(RegExpLiteral) \
135 V(Return) \ 134 V(Return) \
136 V(SeqStringGetChar) \ 135 V(SeqStringGetChar) \
137 V(SeqStringSetChar) \ 136 V(SeqStringSetChar) \
138 V(ShiftI) \ 137 V(ShiftI) \
139 V(SmiTag) \ 138 V(SmiTag) \
140 V(SmiUntag) \ 139 V(SmiUntag) \
141 V(StackCheck) \ 140 V(StackCheck) \
142 V(StoreCodeEntry) \ 141 V(StoreCodeEntry) \
143 V(StoreContextSlot) \ 142 V(StoreContextSlot) \
144 V(StoreFrameContext) \ 143 V(StoreFrameContext) \
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 LOperand* context() { return inputs_[0]; } 2489 LOperand* context() { return inputs_[0]; }
2491 LOperand* size() { return inputs_[1]; } 2490 LOperand* size() { return inputs_[1]; }
2492 LOperand* temp1() { return temps_[0]; } 2491 LOperand* temp1() { return temps_[0]; }
2493 LOperand* temp2() { return temps_[1]; } 2492 LOperand* temp2() { return temps_[1]; }
2494 2493
2495 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 2494 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2496 DECLARE_HYDROGEN_ACCESSOR(Allocate) 2495 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2497 }; 2496 };
2498 2497
2499 2498
2500 class LRegExpLiteral final : public LTemplateInstruction<1, 1, 0> {
2501 public:
2502 explicit LRegExpLiteral(LOperand* context) {
2503 inputs_[0] = context;
2504 }
2505
2506 LOperand* context() { return inputs_[0]; }
2507
2508 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
2509 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
2510 };
2511
2512
2513 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { 2499 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> {
2514 public: 2500 public:
2515 explicit LToFastProperties(LOperand* value) { 2501 explicit LToFastProperties(LOperand* value) {
2516 inputs_[0] = value; 2502 inputs_[0] = value;
2517 } 2503 }
2518 2504
2519 LOperand* value() { return inputs_[0]; } 2505 LOperand* value() { return inputs_[0]; }
2520 2506
2521 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") 2507 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties")
2522 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) 2508 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties)
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
2826 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2812 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2827 }; 2813 };
2828 2814
2829 #undef DECLARE_HYDROGEN_ACCESSOR 2815 #undef DECLARE_HYDROGEN_ACCESSOR
2830 #undef DECLARE_CONCRETE_INSTRUCTION 2816 #undef DECLARE_CONCRETE_INSTRUCTION
2831 2817
2832 } // namespace internal 2818 } // namespace internal
2833 } // namespace v8 2819 } // namespace v8
2834 2820
2835 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2821 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698