| OLD | NEW |
| 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/basic-block-instrumentor.h" | 5 #include "src/compiler/basic-block-instrumentor.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/compiler.h" |
| 9 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| 10 #include "src/compiler/graph.h" | 11 #include "src/compiler/graph.h" |
| 11 #include "src/compiler/machine-operator.h" | 12 #include "src/compiler/machine-operator.h" |
| 12 #include "src/compiler/operator-properties-inl.h" | 13 #include "src/compiler/operator-properties.h" |
| 13 #include "src/compiler/schedule.h" | 14 #include "src/compiler/schedule.h" |
| 14 | 15 |
| 15 namespace v8 { | 16 namespace v8 { |
| 16 namespace internal { | 17 namespace internal { |
| 17 namespace compiler { | 18 namespace compiler { |
| 18 | 19 |
| 19 // Find the first place to insert new nodes in a block that's already been | 20 // Find the first place to insert new nodes in a block that's already been |
| 20 // scheduled that won't upset the register allocator. | 21 // scheduled that won't upset the register allocator. |
| 21 static NodeVector::iterator FindInsertionPoint(BasicBlock* block) { | 22 static NodeVector::iterator FindInsertionPoint(BasicBlock* block) { |
| 22 NodeVector::iterator i = block->begin(); | 23 NodeVector::iterator i = block->begin(); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 for (int i = insertion_start; i < kArraySize; ++i) { | 97 for (int i = insertion_start; i < kArraySize; ++i) { |
| 97 schedule->SetBlockForNode(block, to_insert[i]); | 98 schedule->SetBlockForNode(block, to_insert[i]); |
| 98 } | 99 } |
| 99 } | 100 } |
| 100 return data; | 101 return data; |
| 101 } | 102 } |
| 102 | 103 |
| 103 } // namespace compiler | 104 } // namespace compiler |
| 104 } // namespace internal | 105 } // namespace internal |
| 105 } // namespace v8 | 106 } // namespace v8 |
| OLD | NEW |