OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/bytecode-graph-builder.h" | 5 #include "src/compiler/bytecode-graph-builder.h" |
6 | 6 |
7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compilation-info.h" | 9 #include "src/compilation-info.h" |
10 #include "src/compiler/bytecode-branch-analysis.h" | 10 #include "src/compiler/bytecode-branch-analysis.h" |
(...skipping 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2188 } | 2188 } |
2189 | 2189 |
2190 void BytecodeGraphBuilder::UpdateCurrentSourcePosition( | 2190 void BytecodeGraphBuilder::UpdateCurrentSourcePosition( |
2191 SourcePositionTableIterator* it, int offset) { | 2191 SourcePositionTableIterator* it, int offset) { |
2192 // TODO(neis): Remove this once inlining supports source positions. | 2192 // TODO(neis): Remove this once inlining supports source positions. |
2193 if (source_positions_ == nullptr) return; | 2193 if (source_positions_ == nullptr) return; |
2194 | 2194 |
2195 if (it->done()) return; | 2195 if (it->done()) return; |
2196 | 2196 |
2197 if (it->code_offset() == offset) { | 2197 if (it->code_offset() == offset) { |
2198 source_positions_->set_current_position(it->source_position()); | 2198 source_positions_->SetCurrentPosition(it->source_position()); |
2199 it->Advance(); | 2199 it->Advance(); |
2200 } else { | 2200 } else { |
2201 DCHECK_GT(it->code_offset(), offset); | 2201 DCHECK_GT(it->code_offset(), offset); |
2202 } | 2202 } |
2203 } | 2203 } |
2204 | 2204 |
2205 } // namespace compiler | 2205 } // namespace compiler |
2206 } // namespace internal | 2206 } // namespace internal |
2207 } // namespace v8 | 2207 } // namespace v8 |
OLD | NEW |