v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
abstract-code.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
8
9namespace v8 {
10namespace internal {
11
13 PtrComprCageBase cage_base(isolate);
14 Tagged<Map> map_object = map(cage_base);
15 if (InstanceTypeChecker::IsCode(map_object)) {
16 return GetCode()->SourcePosition(offset);
17 } else {
18 return GetBytecodeArray()->SourcePosition(offset);
19 }
20}
21
23 PtrComprCageBase cage_base(isolate);
24 Tagged<Map> map_object = map(cage_base);
25 if (InstanceTypeChecker::IsCode(map_object)) {
26 return GetCode()->SourceStatementPosition(offset);
27 } else {
28 return GetBytecodeArray()->SourceStatementPosition(offset);
29 }
30}
31
32} // namespace internal
33} // namespace v8
int SourcePosition(Isolate *isolate, int offset)
Tagged< BytecodeArray > GetBytecodeArray()
int SourceStatementPosition(Isolate *isolate, int offset)
int32_t offset
std::map< const std::string, const std::string > map