| Index: src/interpreter/bytecode-label.cc
|
| diff --git a/src/interpreter/bytecode-label.cc b/src/interpreter/bytecode-label.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c5c36f90ec4a9d5286b827e64053b62930354799
|
| --- /dev/null
|
| +++ b/src/interpreter/bytecode-label.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2016 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "src/interpreter/bytecode-label.h"
|
| +
|
| +#include "src/interpreter/bytecode-array-builder.h"
|
| +
|
| +namespace v8 {
|
| +namespace internal {
|
| +namespace interpreter {
|
| +
|
| +BytecodeLabel* BytecodeLabels::New() {
|
| + labels_.push_back(BytecodeLabel());
|
| + return &labels_.back();
|
| +}
|
| +
|
| +void BytecodeLabels::Bind(BytecodeArrayBuilder* builder) {
|
| + for (auto label : labels_) {
|
| + builder->Bind(&label);
|
| + }
|
| +}
|
| +
|
| +} // namespace interpreter
|
| +} // namespace internal
|
| +} // namespace v8
|
|
|