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/compiler/js-operator.h

Issue 2035383003: [turbofan] Type feedback for numeric comparisons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase, pure ops Created 4 years, 6 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/js-call-reducer.cc ('k') | src/compiler/js-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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_JS_OPERATOR_H_ 5 #ifndef V8_COMPILER_JS_OPERATOR_H_
6 #define V8_COMPILER_JS_OPERATOR_H_ 6 #define V8_COMPILER_JS_OPERATOR_H_
7 7
8 #include "src/compiler/type-hints.h" 8 #include "src/compiler/type-hints.h"
9 #include "src/runtime/runtime.h" 9 #include "src/runtime/runtime.h"
10 10
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 bool operator!=(CreateLiteralParameters const&, CreateLiteralParameters const&); 369 bool operator!=(CreateLiteralParameters const&, CreateLiteralParameters const&);
370 370
371 size_t hash_value(CreateLiteralParameters const&); 371 size_t hash_value(CreateLiteralParameters const&);
372 372
373 std::ostream& operator<<(std::ostream&, CreateLiteralParameters const&); 373 std::ostream& operator<<(std::ostream&, CreateLiteralParameters const&);
374 374
375 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op); 375 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op);
376 376
377 const BinaryOperationHints& BinaryOperationHintsOf(const Operator* op); 377 const BinaryOperationHints& BinaryOperationHintsOf(const Operator* op);
378 378
379 const CompareOperationHints& CompareOperationHintsOf(const Operator* op);
380
379 // Interface for building JavaScript-level operators, e.g. directly from the 381 // Interface for building JavaScript-level operators, e.g. directly from the
380 // AST. Most operators have no parameters, thus can be globally shared for all 382 // AST. Most operators have no parameters, thus can be globally shared for all
381 // graphs. 383 // graphs.
382 class JSOperatorBuilder final : public ZoneObject { 384 class JSOperatorBuilder final : public ZoneObject {
383 public: 385 public:
384 explicit JSOperatorBuilder(Zone* zone); 386 explicit JSOperatorBuilder(Zone* zone);
385 387
386 const Operator* Equal(); 388 const Operator* Equal(CompareOperationHints hints);
387 const Operator* NotEqual(); 389 const Operator* NotEqual(CompareOperationHints hints);
388 const Operator* StrictEqual(); 390 const Operator* StrictEqual(CompareOperationHints hints);
389 const Operator* StrictNotEqual(); 391 const Operator* StrictNotEqual(CompareOperationHints hints);
390 const Operator* LessThan(); 392 const Operator* LessThan(CompareOperationHints hints);
391 const Operator* GreaterThan(); 393 const Operator* GreaterThan(CompareOperationHints hints);
392 const Operator* LessThanOrEqual(); 394 const Operator* LessThanOrEqual(CompareOperationHints hints);
393 const Operator* GreaterThanOrEqual(); 395 const Operator* GreaterThanOrEqual(CompareOperationHints hints);
394 const Operator* BitwiseOr(BinaryOperationHints hints); 396 const Operator* BitwiseOr(BinaryOperationHints hints);
395 const Operator* BitwiseXor(BinaryOperationHints hints); 397 const Operator* BitwiseXor(BinaryOperationHints hints);
396 const Operator* BitwiseAnd(BinaryOperationHints hints); 398 const Operator* BitwiseAnd(BinaryOperationHints hints);
397 const Operator* ShiftLeft(BinaryOperationHints hints); 399 const Operator* ShiftLeft(BinaryOperationHints hints);
398 const Operator* ShiftRight(BinaryOperationHints hints); 400 const Operator* ShiftRight(BinaryOperationHints hints);
399 const Operator* ShiftRightLogical(BinaryOperationHints hints); 401 const Operator* ShiftRightLogical(BinaryOperationHints hints);
400 const Operator* Add(BinaryOperationHints hints); 402 const Operator* Add(BinaryOperationHints hints);
401 const Operator* Subtract(BinaryOperationHints hints); 403 const Operator* Subtract(BinaryOperationHints hints);
402 const Operator* Multiply(BinaryOperationHints hints); 404 const Operator* Multiply(BinaryOperationHints hints);
403 const Operator* Divide(BinaryOperationHints hints); 405 const Operator* Divide(BinaryOperationHints hints);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 Zone* const zone_; 495 Zone* const zone_;
494 496
495 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); 497 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder);
496 }; 498 };
497 499
498 } // namespace compiler 500 } // namespace compiler
499 } // namespace internal 501 } // namespace internal
500 } // namespace v8 502 } // namespace v8
501 503
502 #endif // V8_COMPILER_JS_OPERATOR_H_ 504 #endif // V8_COMPILER_JS_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698