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

Side by Side Diff: src/compiler/simplified-operator.h

Issue 2220513002: Revert of [turbofan] Add support for copy-on-write element stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/compiler/simplified-lowering.cc ('k') | src/compiler/simplified-operator.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_SIMPLIFIED_OPERATOR_H_ 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_
6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/compiler/operator.h" 10 #include "src/compiler/operator.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 std::ostream& operator<<(std::ostream&, CheckForMinusZeroMode); 141 std::ostream& operator<<(std::ostream&, CheckForMinusZeroMode);
142 142
143 CheckForMinusZeroMode CheckMinusZeroModeOf(const Operator*) WARN_UNUSED_RESULT; 143 CheckForMinusZeroMode CheckMinusZeroModeOf(const Operator*) WARN_UNUSED_RESULT;
144 144
145 // A descriptor for elements kind transitions. 145 // A descriptor for elements kind transitions.
146 enum class ElementsTransition : uint8_t { 146 enum class ElementsTransition : uint8_t {
147 kFastTransition, // simple transition, just updating the map. 147 kFastTransition, // simple transition, just updating the map.
148 kSlowTransition // full transition, round-trip to the runtime. 148 kSlowTransition // full transition, round-trip to the runtime.
149 }; 149 };
150 150
151 size_t hash_value(ElementsTransition);
152
153 std::ostream& operator<<(std::ostream&, ElementsTransition); 151 std::ostream& operator<<(std::ostream&, ElementsTransition);
154 152
155 ElementsTransition ElementsTransitionOf(const Operator* op) WARN_UNUSED_RESULT; 153 ElementsTransition ElementsTransitionOf(const Operator* op) WARN_UNUSED_RESULT;
156 154
157 BinaryOperationHints::Hint BinaryOperationHintOf(const Operator* op); 155 BinaryOperationHints::Hint BinaryOperationHintOf(const Operator* op);
158 156
159 CompareOperationHints::Hint CompareOperationHintOf(const Operator* op); 157 CompareOperationHints::Hint CompareOperationHintOf(const Operator* op);
160 158
161 // Interface for building simplified operators, which represent the 159 // Interface for building simplified operators, which represent the
162 // medium-level operations of V8, including adding numbers, allocating objects, 160 // medium-level operations of V8, including adding numbers, allocating objects,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 const Operator* CheckFloat64Hole(CheckFloat64HoleMode); 304 const Operator* CheckFloat64Hole(CheckFloat64HoleMode);
307 const Operator* CheckTaggedHole(CheckTaggedHoleMode); 305 const Operator* CheckTaggedHole(CheckTaggedHoleMode);
308 306
309 const Operator* ObjectIsCallable(); 307 const Operator* ObjectIsCallable();
310 const Operator* ObjectIsNumber(); 308 const Operator* ObjectIsNumber();
311 const Operator* ObjectIsReceiver(); 309 const Operator* ObjectIsReceiver();
312 const Operator* ObjectIsSmi(); 310 const Operator* ObjectIsSmi();
313 const Operator* ObjectIsString(); 311 const Operator* ObjectIsString();
314 const Operator* ObjectIsUndetectable(); 312 const Operator* ObjectIsUndetectable();
315 313
316 // ensure-writable-fast-elements object, elements
317 const Operator* EnsureWritableFastElements();
318
319 // transition-elements-kind object, from-map, to-map 314 // transition-elements-kind object, from-map, to-map
320 const Operator* TransitionElementsKind(ElementsTransition transition); 315 const Operator* TransitionElementsKind(ElementsTransition transition);
321 316
322 const Operator* Allocate(PretenureFlag pretenure = NOT_TENURED); 317 const Operator* Allocate(PretenureFlag pretenure = NOT_TENURED);
323 318
324 const Operator* LoadField(FieldAccess const&); 319 const Operator* LoadField(FieldAccess const&);
325 const Operator* StoreField(FieldAccess const&); 320 const Operator* StoreField(FieldAccess const&);
326 321
327 // load-buffer buffer, offset, length 322 // load-buffer buffer, offset, length
328 const Operator* LoadBuffer(BufferAccess); 323 const Operator* LoadBuffer(BufferAccess);
(...skipping 20 matching lines...) Expand all
349 Zone* const zone_; 344 Zone* const zone_;
350 345
351 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); 346 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder);
352 }; 347 };
353 348
354 } // namespace compiler 349 } // namespace compiler
355 } // namespace internal 350 } // namespace internal
356 } // namespace v8 351 } // namespace v8
357 352
358 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ 353 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | src/compiler/simplified-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698