| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |