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

Side by Side Diff: src/compiler/machine-operator-reducer.cc

Issue 547233003: [turbofan] Machine operators are globally shared singletons. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Next windows fix. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/machine-operator-reducer-unittest.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/machine-operator-reducer.h" 5 #include "src/compiler/machine-operator-reducer.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/compiler/generic-node-inl.h" 8 #include "src/compiler/generic-node-inl.h"
9 #include "src/compiler/graph.h" 9 #include "src/compiler/graph.h"
10 #include "src/compiler/js-graph.h" 10 #include "src/compiler/js-graph.h"
11 #include "src/compiler/node-matchers.h" 11 #include "src/compiler/node-matchers.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 namespace compiler { 15 namespace compiler {
16 16
17 MachineOperatorReducer::MachineOperatorReducer(JSGraph* jsgraph) 17 MachineOperatorReducer::MachineOperatorReducer(JSGraph* jsgraph)
18 : jsgraph_(jsgraph), machine_(jsgraph->zone()) {} 18 : jsgraph_(jsgraph) {}
19 19
20 20
21 MachineOperatorReducer::~MachineOperatorReducer() {} 21 MachineOperatorReducer::~MachineOperatorReducer() {}
22 22
23 23
24 Node* MachineOperatorReducer::Float64Constant(volatile double value) { 24 Node* MachineOperatorReducer::Float64Constant(volatile double value) {
25 return jsgraph()->Float64Constant(value); 25 return jsgraph()->Float64Constant(value);
26 } 26 }
27 27
28 28
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 CommonOperatorBuilder* MachineOperatorReducer::common() const { 475 CommonOperatorBuilder* MachineOperatorReducer::common() const {
476 return jsgraph()->common(); 476 return jsgraph()->common();
477 } 477 }
478 478
479 479
480 Graph* MachineOperatorReducer::graph() const { return jsgraph()->graph(); } 480 Graph* MachineOperatorReducer::graph() const { return jsgraph()->graph(); }
481 481
482 } // namespace compiler 482 } // namespace compiler
483 } // namespace internal 483 } // namespace internal
484 } // namespace v8 484 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/machine-operator-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698