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

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

Issue 1455913003: [turbofan] Fix CFI failures with Operator1 class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Better solution. Created 5 years, 1 month 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/common-operator.cc ('k') | src/compiler/operator.h » ('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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 return new (zone()) Operator1<int>( // -- 670 return new (zone()) Operator1<int>( // --
671 IrOpcode::kJSCreateFunctionContext, Operator::kNoProperties, // opcode 671 IrOpcode::kJSCreateFunctionContext, Operator::kNoProperties, // opcode
672 "JSCreateFunctionContext", // name 672 "JSCreateFunctionContext", // name
673 1, 1, 1, 1, 1, 2, // counts 673 1, 1, 1, 1, 1, 2, // counts
674 slot_count); // parameter 674 slot_count); // parameter
675 } 675 }
676 676
677 677
678 const Operator* JSOperatorBuilder::CreateCatchContext( 678 const Operator* JSOperatorBuilder::CreateCatchContext(
679 const Handle<String>& name) { 679 const Handle<String>& name) {
680 return new (zone()) Operator1<Handle<String>, Handle<String>::equal_to, 680 return new (zone()) Operator1<Handle<String>>( // --
681 Handle<String>::hash>( // --
682 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 681 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
683 "JSCreateCatchContext", // name 682 "JSCreateCatchContext", // name
684 2, 1, 1, 1, 1, 2, // counts 683 2, 1, 1, 1, 1, 2, // counts
685 name); // parameter 684 name); // parameter
686 } 685 }
687 686
688 687
689 const Operator* JSOperatorBuilder::CreateBlockContext( 688 const Operator* JSOperatorBuilder::CreateBlockContext(
690 const Handle<ScopeInfo>& scpope_info) { 689 const Handle<ScopeInfo>& scpope_info) {
691 return new (zone()) Operator1<Handle<ScopeInfo>, Handle<ScopeInfo>::equal_to, 690 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
692 Handle<ScopeInfo>::hash>( // --
693 IrOpcode::kJSCreateBlockContext, Operator::kNoProperties, // opcode 691 IrOpcode::kJSCreateBlockContext, Operator::kNoProperties, // opcode
694 "JSCreateBlockContext", // name 692 "JSCreateBlockContext", // name
695 1, 1, 1, 1, 1, 2, // counts 693 1, 1, 1, 1, 1, 2, // counts
696 scpope_info); // parameter 694 scpope_info); // parameter
697 } 695 }
698 696
699 697
700 const Operator* JSOperatorBuilder::CreateScriptContext( 698 const Operator* JSOperatorBuilder::CreateScriptContext(
701 const Handle<ScopeInfo>& scpope_info) { 699 const Handle<ScopeInfo>& scpope_info) {
702 return new (zone()) Operator1<Handle<ScopeInfo>, Handle<ScopeInfo>::equal_to, 700 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
703 Handle<ScopeInfo>::hash>( // --
704 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 701 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
705 "JSCreateScriptContext", // name 702 "JSCreateScriptContext", // name
706 1, 1, 1, 1, 1, 2, // counts 703 1, 1, 1, 1, 1, 2, // counts
707 scpope_info); // parameter 704 scpope_info); // parameter
708 } 705 }
709 706
710 } // namespace compiler 707 } // namespace compiler
711 } // namespace internal 708 } // namespace internal
712 } // namespace v8 709 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698