v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
liveedit.h
Go to the documentation of this file.
1
// Copyright 2012 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
5
#ifndef V8_DEBUG_LIVEEDIT_H_
6
#define V8_DEBUG_LIVEEDIT_H_
7
8
#include <vector>
9
10
#include "
src/common/globals.h
"
11
#include "
src/handles/handles.h
"
12
13
namespace
v8
{
14
namespace
debug {
15
struct
LiveEditResult;
16
}
// namespace debug
17
namespace
internal
{
18
19
class
Script;
20
class
String
;
21
class
Debug;
22
class
JavaScriptFrame;
23
24
struct
SourceChangeRange
{
25
int
start_position
;
26
int
end_position
;
27
int
new_start_position
;
28
int
new_end_position
;
29
};
30
57
class
V8_EXPORT_PRIVATE
LiveEdit
:
AllStatic
{
58
public
:
59
static
void
CompareStrings(
Isolate
* isolate,
Handle<String>
a,
60
Handle<String>
b,
61
std::vector<SourceChangeRange>* diffs);
62
static
int
TranslatePosition(
const
std::vector<SourceChangeRange>& changed,
63
int
position
);
64
static
void
PatchScript(
Isolate
* isolate,
Handle<Script>
script,
65
Handle<String>
source,
bool
preview,
66
bool
allow_top_frame_live_editing,
67
debug::LiveEditResult
*
result
);
68
};
69
}
// namespace internal
70
}
// namespace v8
71
72
#endif
// V8_DEBUG_LIVEEDIT_H_
v8::internal::AllStatic
Definition
globals.h:364
v8::internal::Handle
Definition
handles.h:149
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::LiveEdit
Definition
liveedit.h:57
globals.h
handles.h
result
ZoneVector< RpoNumber > & result
Definition
jump-threading.cc:21
position
int position
Definition
liveedit.cc:290
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8_inspector::protocol::String
v8_inspector::String16 String
Definition
string-util.h:26
v8
Definition
api-arguments-inl.h:19
V8_EXPORT_PRIVATE
#define V8_EXPORT_PRIVATE
Definition
macros.h:460
v8::debug::LiveEditResult
Definition
debug-interface.h:162
v8::internal::SourceChangeRange
Definition
liveedit.h:24
v8::internal::SourceChangeRange::new_end_position
int new_end_position
Definition
liveedit.h:28
v8::internal::SourceChangeRange::start_position
int start_position
Definition
liveedit.h:25
v8::internal::SourceChangeRange::new_start_position
int new_start_position
Definition
liveedit.h:27
v8::internal::SourceChangeRange::end_position
int end_position
Definition
liveedit.h:26
src
debug
liveedit.h
Generated on Sun Apr 6 2025 21:08:53 for v8 by
1.12.0