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

Side by Side Diff: src/compiler/instruction.cc

Issue 1053123006: Calculate blocks needing a frame and frame (de)construction sites. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added missing files Created 5 years, 7 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/instruction.h ('k') | src/compiler/pipeline.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 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/instruction.h" 7 #include "src/compiler/instruction.h"
8 #include "src/compiler/schedule.h" 8 #include "src/compiler/schedule.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 bool deferred) 380 bool deferred)
381 : successors_(zone), 381 : successors_(zone),
382 predecessors_(zone), 382 predecessors_(zone),
383 phis_(zone), 383 phis_(zone),
384 ao_number_(rpo_number), 384 ao_number_(rpo_number),
385 rpo_number_(rpo_number), 385 rpo_number_(rpo_number),
386 loop_header_(loop_header), 386 loop_header_(loop_header),
387 loop_end_(loop_end), 387 loop_end_(loop_end),
388 code_start_(-1), 388 code_start_(-1),
389 code_end_(-1), 389 code_end_(-1),
390 deferred_(deferred) {} 390 deferred_(deferred),
391 needs_frame_(false),
392 must_construct_frame_(false),
393 must_deconstruct_frame_(false) {}
391 394
392 395
393 size_t InstructionBlock::PredecessorIndexOf(RpoNumber rpo_number) const { 396 size_t InstructionBlock::PredecessorIndexOf(RpoNumber rpo_number) const {
394 size_t j = 0; 397 size_t j = 0;
395 for (InstructionBlock::Predecessors::const_iterator i = predecessors_.begin(); 398 for (InstructionBlock::Predecessors::const_iterator i = predecessors_.begin();
396 i != predecessors_.end(); ++i, ++j) { 399 i != predecessors_.end(); ++i, ++j) {
397 if (*i == rpo_number) break; 400 if (*i == rpo_number) break;
398 } 401 }
399 return j; 402 return j;
400 } 403 }
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 os << " B" << succ.ToInt(); 747 os << " B" << succ.ToInt();
745 } 748 }
746 os << "\n"; 749 os << "\n";
747 } 750 }
748 return os; 751 return os;
749 } 752 }
750 753
751 } // namespace compiler 754 } // namespace compiler
752 } // namespace internal 755 } // namespace internal
753 } // namespace v8 756 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698