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

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

Issue 2228783003: [turbofan] Fix typed lowering of JSConvertReceiver. (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 | « no previous file | 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 | « no previous file | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698