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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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_X87_LITHIUM_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 V(MulI) \ 126 V(MulI) \
127 V(NumberTagD) \ 127 V(NumberTagD) \
128 V(NumberTagI) \ 128 V(NumberTagI) \
129 V(NumberTagU) \ 129 V(NumberTagU) \
130 V(NumberUntagD) \ 130 V(NumberUntagD) \
131 V(OsrEntry) \ 131 V(OsrEntry) \
132 V(Parameter) \ 132 V(Parameter) \
133 V(Power) \ 133 V(Power) \
134 V(Prologue) \ 134 V(Prologue) \
135 V(PushArgument) \ 135 V(PushArgument) \
136 V(RegExpLiteral) \
137 V(Return) \ 136 V(Return) \
138 V(SeqStringGetChar) \ 137 V(SeqStringGetChar) \
139 V(SeqStringSetChar) \ 138 V(SeqStringSetChar) \
140 V(ShiftI) \ 139 V(ShiftI) \
141 V(SmiTag) \ 140 V(SmiTag) \
142 V(SmiUntag) \ 141 V(SmiUntag) \
143 V(StackCheck) \ 142 V(StackCheck) \
144 V(StoreCodeEntry) \ 143 V(StoreCodeEntry) \
145 V(StoreContextSlot) \ 144 V(StoreContextSlot) \
146 V(StoreFrameContext) \ 145 V(StoreFrameContext) \
(...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 2502
2504 LOperand* context() { return inputs_[0]; } 2503 LOperand* context() { return inputs_[0]; }
2505 LOperand* size() { return inputs_[1]; } 2504 LOperand* size() { return inputs_[1]; }
2506 LOperand* temp() { return temps_[0]; } 2505 LOperand* temp() { return temps_[0]; }
2507 2506
2508 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 2507 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2509 DECLARE_HYDROGEN_ACCESSOR(Allocate) 2508 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2510 }; 2509 };
2511 2510
2512 2511
2513 class LRegExpLiteral final : public LTemplateInstruction<1, 1, 0> {
2514 public:
2515 explicit LRegExpLiteral(LOperand* context) {
2516 inputs_[0] = context;
2517 }
2518
2519 LOperand* context() { return inputs_[0]; }
2520
2521 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
2522 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
2523 };
2524
2525
2526 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { 2512 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> {
2527 public: 2513 public:
2528 explicit LToFastProperties(LOperand* value) { 2514 explicit LToFastProperties(LOperand* value) {
2529 inputs_[0] = value; 2515 inputs_[0] = value;
2530 } 2516 }
2531 2517
2532 LOperand* value() { return inputs_[0]; } 2518 LOperand* value() { return inputs_[0]; }
2533 2519
2534 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") 2520 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties")
2535 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) 2521 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties)
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
2834 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2820 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2835 }; 2821 };
2836 2822
2837 #undef DECLARE_HYDROGEN_ACCESSOR 2823 #undef DECLARE_HYDROGEN_ACCESSOR
2838 #undef DECLARE_CONCRETE_INSTRUCTION 2824 #undef DECLARE_CONCRETE_INSTRUCTION
2839 2825
2840 } // namespace internal 2826 } // namespace internal
2841 } // namespace v8 2827 } // namespace v8
2842 2828
2843 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 2829 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698