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

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

Issue 1420283009: [turbofan] Add support for storing to double fields. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 break; 664 break;
665 } 665 }
666 // Uncached. 666 // Uncached.
667 return new (zone()) Operator( // -- 667 return new (zone()) Operator( // --
668 IrOpcode::kEffectPhi, Operator::kPure, // opcode 668 IrOpcode::kEffectPhi, Operator::kPure, // opcode
669 "EffectPhi", // name 669 "EffectPhi", // name
670 0, effect_input_count, 1, 0, 1, 0); // counts 670 0, effect_input_count, 1, 0, 1, 0); // counts
671 } 671 }
672 672
673 673
674 const Operator* CommonOperatorBuilder::Guard(Type* type) {
675 return new (zone()) Operator1<Type*>( // --
676 IrOpcode::kGuard, Operator::kKontrol, // opcode
677 "Guard", // name
678 1, 0, 1, 1, 0, 0, // counts
679 type); // parameter
680 }
681
682
674 const Operator* CommonOperatorBuilder::EffectSet(int arguments) { 683 const Operator* CommonOperatorBuilder::EffectSet(int arguments) {
675 DCHECK(arguments > 1); // Disallow empty/singleton sets. 684 DCHECK(arguments > 1); // Disallow empty/singleton sets.
676 return new (zone()) Operator( // -- 685 return new (zone()) Operator( // --
677 IrOpcode::kEffectSet, Operator::kPure, // opcode 686 IrOpcode::kEffectSet, Operator::kPure, // opcode
678 "EffectSet", // name 687 "EffectSet", // name
679 0, arguments, 0, 0, 1, 0); // counts 688 0, arguments, 0, 0, 1, 0); // counts
680 } 689 }
681 690
682 691
683 const Operator* CommonOperatorBuilder::StateValues(int arguments) { 692 const Operator* CommonOperatorBuilder::StateValues(int arguments) {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 Handle<SharedFunctionInfo> shared_info, 815 Handle<SharedFunctionInfo> shared_info,
807 ContextCallingMode context_calling_mode) { 816 ContextCallingMode context_calling_mode) {
808 return new (zone()->New(sizeof(FrameStateFunctionInfo))) 817 return new (zone()->New(sizeof(FrameStateFunctionInfo)))
809 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, 818 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info,
810 context_calling_mode); 819 context_calling_mode);
811 } 820 }
812 821
813 } // namespace compiler 822 } // namespace compiler
814 } // namespace internal 823 } // namespace internal
815 } // namespace v8 824 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698