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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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_X64_LITHIUM_X64_H_ 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 V(MulI) \ 121 V(MulI) \
122 V(NumberTagD) \ 122 V(NumberTagD) \
123 V(NumberTagI) \ 123 V(NumberTagI) \
124 V(NumberTagU) \ 124 V(NumberTagU) \
125 V(NumberUntagD) \ 125 V(NumberUntagD) \
126 V(OsrEntry) \ 126 V(OsrEntry) \
127 V(Parameter) \ 127 V(Parameter) \
128 V(Power) \ 128 V(Power) \
129 V(Prologue) \ 129 V(Prologue) \
130 V(PushArgument) \ 130 V(PushArgument) \
131 V(RegExpLiteral) \
132 V(Return) \ 131 V(Return) \
133 V(SeqStringGetChar) \ 132 V(SeqStringGetChar) \
134 V(SeqStringSetChar) \ 133 V(SeqStringSetChar) \
135 V(ShiftI) \ 134 V(ShiftI) \
136 V(SmiTag) \ 135 V(SmiTag) \
137 V(SmiUntag) \ 136 V(SmiUntag) \
138 V(StackCheck) \ 137 V(StackCheck) \
139 V(StoreCodeEntry) \ 138 V(StoreCodeEntry) \
140 V(StoreContextSlot) \ 139 V(StoreContextSlot) \
141 V(StoreFrameContext) \ 140 V(StoreFrameContext) \
(...skipping 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after
2454 2453
2455 LOperand* context() { return inputs_[0]; } 2454 LOperand* context() { return inputs_[0]; }
2456 LOperand* size() { return inputs_[1]; } 2455 LOperand* size() { return inputs_[1]; }
2457 LOperand* temp() { return temps_[0]; } 2456 LOperand* temp() { return temps_[0]; }
2458 2457
2459 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") 2458 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate")
2460 DECLARE_HYDROGEN_ACCESSOR(Allocate) 2459 DECLARE_HYDROGEN_ACCESSOR(Allocate)
2461 }; 2460 };
2462 2461
2463 2462
2464 class LRegExpLiteral final : public LTemplateInstruction<1, 1, 0> {
2465 public:
2466 explicit LRegExpLiteral(LOperand* context) {
2467 inputs_[0] = context;
2468 }
2469
2470 LOperand* context() { return inputs_[0]; }
2471
2472 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
2473 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral)
2474 };
2475
2476
2477 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { 2463 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> {
2478 public: 2464 public:
2479 explicit LToFastProperties(LOperand* value) { 2465 explicit LToFastProperties(LOperand* value) {
2480 inputs_[0] = value; 2466 inputs_[0] = value;
2481 } 2467 }
2482 2468
2483 LOperand* value() { return inputs_[0]; } 2469 LOperand* value() { return inputs_[0]; }
2484 2470
2485 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") 2471 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties")
2486 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) 2472 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties)
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
2801 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2787 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2802 }; 2788 };
2803 2789
2804 #undef DECLARE_HYDROGEN_ACCESSOR 2790 #undef DECLARE_HYDROGEN_ACCESSOR
2805 #undef DECLARE_CONCRETE_INSTRUCTION 2791 #undef DECLARE_CONCRETE_INSTRUCTION
2806 2792
2807 } // namespace internal 2793 } // namespace internal
2808 } // namespace v8 2794 } // namespace v8
2809 2795
2810 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ 2796 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698