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

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

Issue 2557283002: [turbofan] Add NewUnmappedArgumentsElements and NewRestParametersArguments. (Closed)
Patch Set: Fixes. Created 4 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
« 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/base/compiler-specific.h" 10 #include "src/base/compiler-specific.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 kNumberOrOddball, // Inputs were Number or Oddball, output was Number. 179 kNumberOrOddball, // Inputs were Number or Oddball, output was Number.
180 }; 180 };
181 181
182 size_t hash_value(NumberOperationHint); 182 size_t hash_value(NumberOperationHint);
183 183
184 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, NumberOperationHint); 184 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, NumberOperationHint);
185 185
186 NumberOperationHint NumberOperationHintOf(const Operator* op) 186 NumberOperationHint NumberOperationHintOf(const Operator* op)
187 WARN_UNUSED_RESULT; 187 WARN_UNUSED_RESULT;
188 188
189 int ParameterCountOf(const Operator* op) WARN_UNUSED_RESULT;
190
189 PretenureFlag PretenureFlagOf(const Operator* op) WARN_UNUSED_RESULT; 191 PretenureFlag PretenureFlagOf(const Operator* op) WARN_UNUSED_RESULT;
190 192
191 UnicodeEncoding UnicodeEncodingOf(const Operator*) WARN_UNUSED_RESULT; 193 UnicodeEncoding UnicodeEncodingOf(const Operator*) WARN_UNUSED_RESULT;
192 194
193 // Interface for building simplified operators, which represent the 195 // Interface for building simplified operators, which represent the
194 // medium-level operations of V8, including adding numbers, allocating objects, 196 // medium-level operations of V8, including adding numbers, allocating objects,
195 // indexing into objects and arrays, etc. 197 // indexing into objects and arrays, etc.
196 // All operators are typed but many are representation independent. 198 // All operators are typed but many are representation independent.
197 199
198 // Number values from JS can be in one of these representations: 200 // Number values from JS can be in one of these representations:
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 const Operator* CheckTaggedHole(); 350 const Operator* CheckTaggedHole();
349 const Operator* ConvertTaggedHoleToUndefined(); 351 const Operator* ConvertTaggedHoleToUndefined();
350 352
351 const Operator* ObjectIsCallable(); 353 const Operator* ObjectIsCallable();
352 const Operator* ObjectIsNumber(); 354 const Operator* ObjectIsNumber();
353 const Operator* ObjectIsReceiver(); 355 const Operator* ObjectIsReceiver();
354 const Operator* ObjectIsSmi(); 356 const Operator* ObjectIsSmi();
355 const Operator* ObjectIsString(); 357 const Operator* ObjectIsString();
356 const Operator* ObjectIsUndetectable(); 358 const Operator* ObjectIsUndetectable();
357 359
360 // new-rest-parameter-elements
361 const Operator* NewRestParameterElements(int parameter_count);
362
363 // new-unmapped-arguments-elements
364 const Operator* NewUnmappedArgumentsElements(int parameter_count);
365
358 // array-buffer-was-neutered buffer 366 // array-buffer-was-neutered buffer
359 const Operator* ArrayBufferWasNeutered(); 367 const Operator* ArrayBufferWasNeutered();
360 368
361 // ensure-writable-fast-elements object, elements 369 // ensure-writable-fast-elements object, elements
362 const Operator* EnsureWritableFastElements(); 370 const Operator* EnsureWritableFastElements();
363 371
364 // maybe-grow-fast-elements object, elements, index, length 372 // maybe-grow-fast-elements object, elements, index, length
365 const Operator* MaybeGrowFastElements(GrowFastElementsFlags flags); 373 const Operator* MaybeGrowFastElements(GrowFastElementsFlags flags);
366 374
367 // transition-elements-kind object, from-map, to-map 375 // transition-elements-kind object, from-map, to-map
(...skipping 29 matching lines...) Expand all
397 Zone* const zone_; 405 Zone* const zone_;
398 406
399 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); 407 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder);
400 }; 408 };
401 409
402 } // namespace compiler 410 } // namespace compiler
403 } // namespace internal 411 } // namespace internal
404 } // namespace v8 412 } // namespace v8
405 413
406 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ 414 #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