OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "src/interpreter/bytecode-label.h" |
| 6 |
| 7 #include "src/interpreter/bytecode-array-builder.h" |
| 8 |
| 9 namespace v8 { |
| 10 namespace internal { |
| 11 namespace interpreter { |
| 12 |
| 13 BytecodeLabel* BytecodeLabels::New() { |
| 14 labels_.push_back(BytecodeLabel()); |
| 15 return &labels_.back(); |
| 16 } |
| 17 |
| 18 void BytecodeLabels::Bind(BytecodeArrayBuilder* builder) { |
| 19 for (auto label : labels_) { |
| 20 builder->Bind(&label); |
| 21 } |
| 22 } |
| 23 |
| 24 } // namespace interpreter |
| 25 } // namespace internal |
| 26 } // namespace v8 |
OLD | NEW |