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

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

Issue 1314473007: [turbofan] Remove usage of Unique<T> from graph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased and fixed. Created 5 years, 3 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 | « src/compiler/common-operator.h ('k') | src/compiler/common-operator-reducer.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/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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 return new (zone()) Operator1<double, base::bit_equal_to<double>, 568 return new (zone()) Operator1<double, base::bit_equal_to<double>,
569 base::bit_hash<double>>( // -- 569 base::bit_hash<double>>( // --
570 IrOpcode::kNumberConstant, Operator::kPure, // opcode 570 IrOpcode::kNumberConstant, Operator::kPure, // opcode
571 "NumberConstant", // name 571 "NumberConstant", // name
572 0, 0, 0, 1, 0, 0, // counts 572 0, 0, 0, 1, 0, 0, // counts
573 value); // parameter 573 value); // parameter
574 } 574 }
575 575
576 576
577 const Operator* CommonOperatorBuilder::HeapConstant( 577 const Operator* CommonOperatorBuilder::HeapConstant(
578 const Unique<HeapObject>& value) { 578 const Handle<HeapObject>& value) {
579 return new (zone()) Operator1<Unique<HeapObject>>( // -- 579 return new (zone())
580 IrOpcode::kHeapConstant, Operator::kPure, // opcode 580 Operator1<Handle<HeapObject>, Handle<HeapObject>::equal_to,
581 "HeapConstant", // name 581 Handle<HeapObject>::hash>( // --
582 0, 0, 0, 1, 0, 0, // counts 582 IrOpcode::kHeapConstant, Operator::kPure, // opcode
583 value); // parameter 583 "HeapConstant", // name
584 0, 0, 0, 1, 0, 0, // counts
585 value); // parameter
584 } 586 }
585 587
586 588
587 const Operator* CommonOperatorBuilder::Select(MachineType type, 589 const Operator* CommonOperatorBuilder::Select(MachineType type,
588 BranchHint hint) { 590 BranchHint hint) {
589 return new (zone()) Operator1<SelectParameters>( // -- 591 return new (zone()) Operator1<SelectParameters>( // --
590 IrOpcode::kSelect, Operator::kPure, // opcode 592 IrOpcode::kSelect, Operator::kPure, // opcode
591 "Select", // name 593 "Select", // name
592 3, 0, 0, 1, 0, 0, // counts 594 3, 0, 0, 1, 0, 0, // counts
593 SelectParameters(type, hint)); // parameter 595 SelectParameters(type, hint)); // parameter
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 Handle<SharedFunctionInfo> shared_info, 781 Handle<SharedFunctionInfo> shared_info,
780 ContextCallingMode context_calling_mode) { 782 ContextCallingMode context_calling_mode) {
781 return new (zone()->New(sizeof(FrameStateFunctionInfo))) 783 return new (zone()->New(sizeof(FrameStateFunctionInfo)))
782 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, 784 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info,
783 context_calling_mode); 785 context_calling_mode);
784 } 786 }
785 787
786 } // namespace compiler 788 } // namespace compiler
787 } // namespace internal 789 } // namespace internal
788 } // namespace v8 790 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/common-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698