| 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 return new (zone()) Operator1<CallConstructParameters>( // -- | 683 return new (zone()) Operator1<CallConstructParameters>( // -- |
| 684 IrOpcode::kJSCallConstruct, Operator::kNoProperties, // opcode | 684 IrOpcode::kJSCallConstruct, Operator::kNoProperties, // opcode |
| 685 "JSCallConstruct", // name | 685 "JSCallConstruct", // name |
| 686 parameters.arity(), 1, 1, 1, 1, 2, // counts | 686 parameters.arity(), 1, 1, 1, 1, 2, // counts |
| 687 parameters); // parameter | 687 parameters); // parameter |
| 688 } | 688 } |
| 689 | 689 |
| 690 | 690 |
| 691 const Operator* JSOperatorBuilder::ConvertReceiver( | 691 const Operator* JSOperatorBuilder::ConvertReceiver( |
| 692 ConvertReceiverMode convert_mode) { | 692 ConvertReceiverMode convert_mode) { |
| 693 return new (zone()) Operator1<ConvertReceiverMode>( // -- | 693 return new (zone()) Operator1<ConvertReceiverMode>( // -- |
| 694 IrOpcode::kJSConvertReceiver, Operator::kNoThrow, // opcode | 694 IrOpcode::kJSConvertReceiver, Operator::kEliminatable, // opcode |
| 695 "JSConvertReceiver", // name | 695 "JSConvertReceiver", // name |
| 696 1, 1, 1, 1, 1, 0, // counts | 696 1, 1, 1, 1, 1, 0, // counts |
| 697 convert_mode); // parameter | 697 convert_mode); // parameter |
| 698 } | 698 } |
| 699 | 699 |
| 700 const Operator* JSOperatorBuilder::LoadNamed(Handle<Name> name, | 700 const Operator* JSOperatorBuilder::LoadNamed(Handle<Name> name, |
| 701 const VectorSlotPair& feedback) { | 701 const VectorSlotPair& feedback) { |
| 702 NamedAccess access(SLOPPY, name, feedback); | 702 NamedAccess access(SLOPPY, name, feedback); |
| 703 return new (zone()) Operator1<NamedAccess>( // -- | 703 return new (zone()) Operator1<NamedAccess>( // -- |
| 704 IrOpcode::kJSLoadNamed, Operator::kNoProperties, // opcode | 704 IrOpcode::kJSLoadNamed, Operator::kNoProperties, // opcode |
| 705 "JSLoadNamed", // name | 705 "JSLoadNamed", // name |
| 706 2, 1, 1, 1, 1, 2, // counts | 706 2, 1, 1, 1, 1, 2, // counts |
| 707 access); // parameter | 707 access); // parameter |
| (...skipping 207 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 |