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
13namespace v8 {
14namespace debug {
15struct LiveEditResult;
16} // namespace debug
17namespace internal {
18
19class Script;
20class String;
21class Debug;
22class JavaScriptFrame;
23
30
58 public:
59 static void CompareStrings(Isolate* isolate, Handle<String> a,
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,
68};
69} // namespace internal
70} // namespace v8
71
72#endif // V8_DEBUG_LIVEEDIT_H_
ZoneVector< RpoNumber > & result
int position
Definition liveedit.cc:290
v8_inspector::String16 String
Definition string-util.h:26
#define V8_EXPORT_PRIVATE
Definition macros.h:460