v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
bytecode-label.cc
Go to the documentation of this file.
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
6
9
10namespace v8 {
11namespace internal {
12namespace interpreter {
13
15 DCHECK(!is_bound());
16 labels_.emplace_back(BytecodeLabel());
17 return &labels_.back();
18}
19
22 is_bound_ = true;
23 for (auto& label : labels_) {
24 builder->Bind(&label);
25 }
26}
27
28} // namespace interpreter
29} // namespace internal
30} // namespace v8
BytecodeArrayBuilder & Bind(BytecodeLabel *label)
ZoneLinkedList< BytecodeLabel > labels_
void Bind(BytecodeArrayBuilder *builder)
Label label
#define DCHECK(condition)
Definition logging.h:482