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

Side by Side Diff: src/compiler/js-operator.cc

Issue 2222993003: [turbofan] Consume number type hints for strict equality. (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/js-generic-lowering.cc ('k') | src/compiler/js-typed-lowering.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 #include "src/compiler/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 "JSNotEqual", // name 572 "JSNotEqual", // name
573 2, 1, 1, 1, 1, 2, // inputs/outputs 573 2, 1, 1, 1, 1, 2, // inputs/outputs
574 hints); // parameter 574 hints); // parameter
575 } 575 }
576 576
577 const Operator* JSOperatorBuilder::StrictEqual(CompareOperationHints hints) { 577 const Operator* JSOperatorBuilder::StrictEqual(CompareOperationHints hints) {
578 // TODO(turbofan): Cache most important versions of this operator. 578 // TODO(turbofan): Cache most important versions of this operator.
579 return new (zone()) Operator1<CompareOperationHints>( //-- 579 return new (zone()) Operator1<CompareOperationHints>( //--
580 IrOpcode::kJSStrictEqual, Operator::kPure, // opcode 580 IrOpcode::kJSStrictEqual, Operator::kPure, // opcode
581 "JSStrictEqual", // name 581 "JSStrictEqual", // name
582 2, 0, 0, 1, 0, 0, // inputs/outputs 582 2, 1, 1, 1, 1, 0, // inputs/outputs
583 hints); // parameter 583 hints); // parameter
584 } 584 }
585 585
586 const Operator* JSOperatorBuilder::StrictNotEqual(CompareOperationHints hints) { 586 const Operator* JSOperatorBuilder::StrictNotEqual(CompareOperationHints hints) {
587 // TODO(turbofan): Cache most important versions of this operator. 587 // TODO(turbofan): Cache most important versions of this operator.
588 return new (zone()) Operator1<CompareOperationHints>( //-- 588 return new (zone()) Operator1<CompareOperationHints>( //--
589 IrOpcode::kJSStrictNotEqual, Operator::kPure, // opcode 589 IrOpcode::kJSStrictNotEqual, Operator::kPure, // opcode
590 "JSStrictNotEqual", // name 590 "JSStrictNotEqual", // name
591 2, 0, 0, 1, 0, 0, // inputs/outputs 591 2, 1, 1, 1, 1, 0, // inputs/outputs
592 hints); // parameter 592 hints); // parameter
593 } 593 }
594 594
595 const Operator* JSOperatorBuilder::LessThan(CompareOperationHints hints) { 595 const Operator* JSOperatorBuilder::LessThan(CompareOperationHints hints) {
596 // TODO(turbofan): Cache most important versions of this operator. 596 // TODO(turbofan): Cache most important versions of this operator.
597 return new (zone()) Operator1<CompareOperationHints>( //-- 597 return new (zone()) Operator1<CompareOperationHints>( //--
598 IrOpcode::kJSLessThan, Operator::kNoProperties, // opcode 598 IrOpcode::kJSLessThan, Operator::kNoProperties, // opcode
599 "JSLessThan", // name 599 "JSLessThan", // name
600 2, 1, 1, 1, 1, 2, // inputs/outputs 600 2, 1, 1, 1, 1, 2, // inputs/outputs
601 hints); // parameter 601 hints); // parameter
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 915 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
916 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 916 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
917 "JSCreateScriptContext", // name 917 "JSCreateScriptContext", // name
918 1, 1, 1, 1, 1, 2, // counts 918 1, 1, 1, 1, 1, 2, // counts
919 scpope_info); // parameter 919 scpope_info); // parameter
920 } 920 }
921 921
922 } // namespace compiler 922 } // namespace compiler
923 } // namespace internal 923 } // namespace internal
924 } // namespace v8 924 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698