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

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

Issue 1399423002: [turbofan] Introduce node regions for protection from scheduling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 5 years, 2 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
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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 671
672 const Operator* CommonOperatorBuilder::EffectSet(int arguments) { 672 const Operator* CommonOperatorBuilder::EffectSet(int arguments) {
673 DCHECK(arguments > 1); // Disallow empty/singleton sets. 673 DCHECK(arguments > 1); // Disallow empty/singleton sets.
674 return new (zone()) Operator( // -- 674 return new (zone()) Operator( // --
675 IrOpcode::kEffectSet, Operator::kPure, // opcode 675 IrOpcode::kEffectSet, Operator::kPure, // opcode
676 "EffectSet", // name 676 "EffectSet", // name
677 0, arguments, 0, 0, 1, 0); // counts 677 0, arguments, 0, 0, 1, 0); // counts
678 } 678 }
679 679
680 680
681 const Operator* CommonOperatorBuilder::ValueEffect(int arguments) { 681 const Operator* CommonOperatorBuilder::BeginRegion() {
Benedikt Meurer 2015/10/13 19:12:09 Nit: Move to the CACHED_OP_LIST above.
Jarin 2015/10/14 06:37:20 Done.
682 DCHECK(arguments > 0); // Disallow empty value effects. 682 return new (zone()) Operator( // --
683 return new (zone()) Operator( // -- 683 IrOpcode::kBeginRegion, Operator::kNoThrow, // opcode
684 IrOpcode::kValueEffect, Operator::kPure, // opcode 684 "BeginRegion", // name
685 "ValueEffect", // name 685 0, 1, 0, 0, 1, 0); // counts
686 arguments, 0, 0, 0, 1, 0); // counts
687 } 686 }
688 687
689 688
690 const Operator* CommonOperatorBuilder::Finish(int arguments) { 689 const Operator* CommonOperatorBuilder::FinishRegion() {
Benedikt Meurer 2015/10/13 19:12:09 Nit: Move to the CACHED_OP_LIST above.
Jarin 2015/10/14 06:37:20 Done.
691 DCHECK(arguments > 0); // Disallow empty finishes. 690 return new (zone()) Operator( // --
692 return new (zone()) Operator( // -- 691 IrOpcode::kFinishRegion, Operator::kNoThrow, // opcode
693 IrOpcode::kFinish, Operator::kPure, // opcode 692 "FinishRegion", // name
694 "Finish", // name 693 1, 1, 0, 1, 1, 0); // counts
695 1, arguments, 0, 1, 0, 0); // counts
696 } 694 }
697 695
698 696
699 const Operator* CommonOperatorBuilder::StateValues(int arguments) { 697 const Operator* CommonOperatorBuilder::StateValues(int arguments) {
700 switch (arguments) { 698 switch (arguments) {
701 #define CACHED_STATE_VALUES(arguments) \ 699 #define CACHED_STATE_VALUES(arguments) \
702 case arguments: \ 700 case arguments: \
703 return &cache_.kStateValues##arguments##Operator; 701 return &cache_.kStateValues##arguments##Operator;
704 CACHED_STATE_VALUES_LIST(CACHED_STATE_VALUES) 702 CACHED_STATE_VALUES_LIST(CACHED_STATE_VALUES)
705 #undef CACHED_STATE_VALUES 703 #undef CACHED_STATE_VALUES
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 Handle<SharedFunctionInfo> shared_info, 815 Handle<SharedFunctionInfo> shared_info,
818 ContextCallingMode context_calling_mode) { 816 ContextCallingMode context_calling_mode) {
819 return new (zone()->New(sizeof(FrameStateFunctionInfo))) 817 return new (zone()->New(sizeof(FrameStateFunctionInfo)))
820 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, 818 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info,
821 context_calling_mode); 819 context_calling_mode);
822 } 820 }
823 821
824 } // namespace compiler 822 } // namespace compiler
825 } // namespace internal 823 } // namespace internal
826 } // namespace v8 824 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698