Sha256: 4e4b14a643964b787c59679aafe14a83a1319edf709b3ef945c2b39b10172bbf

Contents?: true

Size: 855 Bytes

Versions: 4

Compression:

Stored size: 855 Bytes

Contents

// 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() {
  DCHECK(!is_bound());
  labels_.push_back(BytecodeLabel());
  return &labels_.back();
}

void BytecodeLabels::Bind(BytecodeArrayBuilder* builder) {
  for (auto& label : labels_) {
    builder->Bind(&label);
  }
}

void BytecodeLabels::BindToLabel(BytecodeArrayBuilder* builder,
                                 const BytecodeLabel& target) {
  for (auto& label : labels_) {
    builder->Bind(target, &label);
  }
}

}  // namespace interpreter
}  // namespace internal
}  // namespace v8

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/deps/v8/src/interpreter/bytecode-label.cc
node-compiler-0.9.0 vendor/node-v7.2.1/deps/v8/src/interpreter/bytecode-label.cc
node-compiler-0.8.0 vendor/node-v7.2.0/deps/v8/src/interpreter/bytecode-label.cc
node-compiler-0.7.0 vendor/node-v7.1.0/deps/v8/src/interpreter/bytecode-label.cc