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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 } | 512 } |
513 | 513 |
514 | 514 |
515 const Operator* JSOperatorBuilder::StoreNamed(LanguageMode language_mode, | 515 const Operator* JSOperatorBuilder::StoreNamed(LanguageMode language_mode, |
516 const Unique<Name>& name, | 516 const Unique<Name>& name, |
517 const VectorSlotPair& feedback) { | 517 const VectorSlotPair& feedback) { |
518 StoreNamedParameters parameters(language_mode, feedback, name); | 518 StoreNamedParameters parameters(language_mode, feedback, name); |
519 return new (zone()) Operator1<StoreNamedParameters>( // -- | 519 return new (zone()) Operator1<StoreNamedParameters>( // -- |
520 IrOpcode::kJSStoreNamed, Operator::kNoProperties, // opcode | 520 IrOpcode::kJSStoreNamed, Operator::kNoProperties, // opcode |
521 "JSStoreNamed", // name | 521 "JSStoreNamed", // name |
522 2, 1, 1, 0, 1, 2, // counts | 522 3, 1, 1, 0, 1, 2, // counts |
523 parameters); // parameter | 523 parameters); // parameter |
524 } | 524 } |
525 | 525 |
526 | 526 |
527 const Operator* JSOperatorBuilder::StoreProperty( | 527 const Operator* JSOperatorBuilder::StoreProperty( |
528 LanguageMode language_mode, const VectorSlotPair& feedback) { | 528 LanguageMode language_mode, const VectorSlotPair& feedback) { |
529 StorePropertyParameters parameters(language_mode, feedback); | 529 StorePropertyParameters parameters(language_mode, feedback); |
530 return new (zone()) Operator1<StorePropertyParameters>( // -- | 530 return new (zone()) Operator1<StorePropertyParameters>( // -- |
531 IrOpcode::kJSStoreProperty, Operator::kNoProperties, // opcode | 531 IrOpcode::kJSStoreProperty, Operator::kNoProperties, // opcode |
532 "JSStoreProperty", // name | 532 "JSStoreProperty", // name |
533 3, 1, 1, 0, 1, 2, // counts | 533 4, 1, 1, 0, 1, 2, // counts |
534 parameters); // parameter | 534 parameters); // parameter |
535 } | 535 } |
536 | 536 |
537 | 537 |
538 const Operator* JSOperatorBuilder::DeleteProperty(LanguageMode language_mode) { | 538 const Operator* JSOperatorBuilder::DeleteProperty(LanguageMode language_mode) { |
539 return new (zone()) Operator1<LanguageMode>( // -- | 539 return new (zone()) Operator1<LanguageMode>( // -- |
540 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode | 540 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode |
541 "JSDeleteProperty", // name | 541 "JSDeleteProperty", // name |
542 2, 1, 1, 1, 1, 2, // counts | 542 2, 1, 1, 1, 1, 2, // counts |
543 language_mode); // parameter | 543 language_mode); // parameter |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 return new (zone()) Operator1<Unique<String>>( // -- | 626 return new (zone()) Operator1<Unique<String>>( // -- |
627 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode | 627 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode |
628 "JSCreateCatchContext", // name | 628 "JSCreateCatchContext", // name |
629 2, 1, 1, 1, 1, 2, // counts | 629 2, 1, 1, 1, 1, 2, // counts |
630 name); // parameter | 630 name); // parameter |
631 } | 631 } |
632 | 632 |
633 } // namespace compiler | 633 } // namespace compiler |
634 } // namespace internal | 634 } // namespace internal |
635 } // namespace v8 | 635 } // namespace v8 |
OLD | NEW |