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

Side by Side Diff: src/compiler/raw-machine-assembler.cc

Issue 644083003: [turbofan] Reduce memory consumption of graph building (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add missing arraysize Created 6 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 | Annotate | Revision Log
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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/compiler/pipeline.h" 6 #include "src/compiler/pipeline.h"
7 #include "src/compiler/raw-machine-assembler.h" 7 #include "src/compiler/raw-machine-assembler.h"
8 #include "src/compiler/scheduler.h" 8 #include "src/compiler/scheduler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 144
145 145
146 BasicBlock* RawMachineAssembler::CurrentBlock() { 146 BasicBlock* RawMachineAssembler::CurrentBlock() {
147 DCHECK(current_block_); 147 DCHECK(current_block_);
148 return current_block_; 148 return current_block_;
149 } 149 }
150 150
151 151
152 Node* RawMachineAssembler::MakeNode(const Operator* op, int input_count, 152 Node* RawMachineAssembler::MakeNode(const Operator* op, int input_count,
153 Node** inputs) { 153 Node** inputs, bool incomplete) {
154 DCHECK(ScheduleValid()); 154 DCHECK(ScheduleValid());
155 DCHECK(current_block_ != NULL); 155 DCHECK(current_block_ != NULL);
156 Node* node = graph()->NewNode(op, input_count, inputs); 156 Node* node = graph()->NewNode(op, input_count, inputs, incomplete);
157 BasicBlock* block = op->opcode() == IrOpcode::kParameter ? schedule()->start() 157 BasicBlock* block = op->opcode() == IrOpcode::kParameter ? schedule()->start()
158 : CurrentBlock(); 158 : CurrentBlock();
159 schedule()->AddNode(block, node); 159 schedule()->AddNode(block, node);
160 return node; 160 return node;
161 } 161 }
162 162
163 } // namespace compiler 163 } // namespace compiler
164 } // namespace internal 164 } // namespace internal
165 } // namespace v8 165 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698