v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
builtin-jump-table-info-x64.cc
Go to the documentation of this file.
1// Copyright 2023 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
7#include "src/base/memory.h"
10
11namespace v8 {
12namespace internal {
13
14void BuiltinJumpTableInfoWriter::Add(uint32_t pc_offset, int32_t target) {
15 entries_.emplace_back(pc_offset, target);
16}
17
19 return entries_.size();
20}
21
23 return static_cast<uint32_t>(entry_count() *
25}
26
38
44
49
54
58
62
63} // namespace internal
64} // namespace v8
std::vector< BuiltinJumpTableInfoEntry > entries_
V8_EXPORT_PRIVATE void Add(uint32_t pc_offset, int32_t target)
const int size_
Definition assembler.cc:132
uint8_t *const start_
Definition assembler.cc:131
int start
int pc_offset
static V ReadUnalignedValue(Address p)
Definition memory.h:28
constexpr int kInt32Size
Definition globals.h:401
constexpr int kUInt32Size
Definition globals.h:403
static constexpr Address kNullAddress
Definition v8-internal.h:53
#define DCHECK_NE(v1, v2)
Definition logging.h:486