@babylonjs/v8-android-jit-nointl-nosnapshot 11.110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/include/APIDesign.md +72 -0
- package/dist/include/DEPS +10 -0
- package/dist/include/DIR_METADATA +11 -0
- package/dist/include/OWNERS +23 -0
- package/dist/include/cppgc/DEPS +8 -0
- package/dist/include/cppgc/OWNERS +2 -0
- package/dist/include/cppgc/README.md +135 -0
- package/dist/include/cppgc/allocation.h +310 -0
- package/dist/include/cppgc/common.h +28 -0
- package/dist/include/cppgc/cross-thread-persistent.h +464 -0
- package/dist/include/cppgc/custom-space.h +97 -0
- package/dist/include/cppgc/default-platform.h +67 -0
- package/dist/include/cppgc/ephemeron-pair.h +30 -0
- package/dist/include/cppgc/explicit-management.h +100 -0
- package/dist/include/cppgc/garbage-collected.h +106 -0
- package/dist/include/cppgc/heap-consistency.h +309 -0
- package/dist/include/cppgc/heap-handle.h +48 -0
- package/dist/include/cppgc/heap-state.h +82 -0
- package/dist/include/cppgc/heap-statistics.h +120 -0
- package/dist/include/cppgc/heap.h +202 -0
- package/dist/include/cppgc/internal/api-constants.h +65 -0
- package/dist/include/cppgc/internal/atomic-entry-flag.h +48 -0
- package/dist/include/cppgc/internal/base-page-handle.h +45 -0
- package/dist/include/cppgc/internal/caged-heap-local-data.h +111 -0
- package/dist/include/cppgc/internal/caged-heap.h +61 -0
- package/dist/include/cppgc/internal/compiler-specific.h +38 -0
- package/dist/include/cppgc/internal/finalizer-trait.h +93 -0
- package/dist/include/cppgc/internal/gc-info.h +155 -0
- package/dist/include/cppgc/internal/logging.h +50 -0
- package/dist/include/cppgc/internal/member-storage.h +236 -0
- package/dist/include/cppgc/internal/name-trait.h +137 -0
- package/dist/include/cppgc/internal/persistent-node.h +214 -0
- package/dist/include/cppgc/internal/pointer-policies.h +207 -0
- package/dist/include/cppgc/internal/write-barrier.h +477 -0
- package/dist/include/cppgc/liveness-broker.h +78 -0
- package/dist/include/cppgc/macros.h +26 -0
- package/dist/include/cppgc/member.h +566 -0
- package/dist/include/cppgc/name-provider.h +65 -0
- package/dist/include/cppgc/object-size-trait.h +58 -0
- package/dist/include/cppgc/persistent.h +366 -0
- package/dist/include/cppgc/platform.h +158 -0
- package/dist/include/cppgc/prefinalizer.h +75 -0
- package/dist/include/cppgc/process-heap-statistics.h +36 -0
- package/dist/include/cppgc/sentinel-pointer.h +32 -0
- package/dist/include/cppgc/source-location.h +92 -0
- package/dist/include/cppgc/testing.h +106 -0
- package/dist/include/cppgc/trace-trait.h +120 -0
- package/dist/include/cppgc/type-traits.h +249 -0
- package/dist/include/cppgc/visitor.h +411 -0
- package/dist/include/js_protocol-1.2.json +997 -0
- package/dist/include/js_protocol-1.3.json +1159 -0
- package/dist/include/js_protocol.pdl +1766 -0
- package/dist/include/libplatform/DEPS +9 -0
- package/dist/include/libplatform/libplatform-export.h +29 -0
- package/dist/include/libplatform/libplatform.h +106 -0
- package/dist/include/libplatform/v8-tracing.h +333 -0
- package/dist/include/v8-array-buffer.h +512 -0
- package/dist/include/v8-callbacks.h +412 -0
- package/dist/include/v8-container.h +129 -0
- package/dist/include/v8-context.h +415 -0
- package/dist/include/v8-cppgc.h +231 -0
- package/dist/include/v8-data.h +80 -0
- package/dist/include/v8-date.h +48 -0
- package/dist/include/v8-debug.h +168 -0
- package/dist/include/v8-embedder-heap.h +223 -0
- package/dist/include/v8-embedder-state-scope.h +51 -0
- package/dist/include/v8-exception.h +217 -0
- package/dist/include/v8-extension.h +62 -0
- package/dist/include/v8-external.h +37 -0
- package/dist/include/v8-fast-api-calls.h +957 -0
- package/dist/include/v8-forward.h +81 -0
- package/dist/include/v8-function-callback.h +475 -0
- package/dist/include/v8-function.h +133 -0
- package/dist/include/v8-initialization.h +289 -0
- package/dist/include/v8-inspector-protocol.h +13 -0
- package/dist/include/v8-inspector.h +397 -0
- package/dist/include/v8-internal.h +851 -0
- package/dist/include/v8-isolate.h +1695 -0
- package/dist/include/v8-json.h +47 -0
- package/dist/include/v8-local-handle.h +455 -0
- package/dist/include/v8-locker.h +138 -0
- package/dist/include/v8-maybe.h +160 -0
- package/dist/include/v8-memory-span.h +43 -0
- package/dist/include/v8-message.h +214 -0
- package/dist/include/v8-metrics.h +311 -0
- package/dist/include/v8-microtask-queue.h +157 -0
- package/dist/include/v8-microtask.h +28 -0
- package/dist/include/v8-object.h +768 -0
- package/dist/include/v8-persistent-handle.h +588 -0
- package/dist/include/v8-platform.h +1130 -0
- package/dist/include/v8-primitive-object.h +118 -0
- package/dist/include/v8-primitive.h +866 -0
- package/dist/include/v8-profiler.h +1277 -0
- package/dist/include/v8-promise.h +174 -0
- package/dist/include/v8-proxy.h +50 -0
- package/dist/include/v8-regexp.h +106 -0
- package/dist/include/v8-script.h +803 -0
- package/dist/include/v8-snapshot.h +196 -0
- package/dist/include/v8-statistics.h +217 -0
- package/dist/include/v8-template.h +1018 -0
- package/dist/include/v8-traced-handle.h +420 -0
- package/dist/include/v8-typed-array.h +282 -0
- package/dist/include/v8-unwinder-state.h +31 -0
- package/dist/include/v8-unwinder.h +132 -0
- package/dist/include/v8-util.h +656 -0
- package/dist/include/v8-value-serializer-version.h +24 -0
- package/dist/include/v8-value-serializer.h +302 -0
- package/dist/include/v8-value.h +531 -0
- package/dist/include/v8-version-string.h +38 -0
- package/dist/include/v8-version.h +20 -0
- package/dist/include/v8-wasm-trap-handler-posix.h +31 -0
- package/dist/include/v8-wasm-trap-handler-win.h +28 -0
- package/dist/include/v8-wasm.h +200 -0
- package/dist/include/v8-weak-callback-info.h +80 -0
- package/dist/include/v8.h +88 -0
- package/dist/include/v8config.h +904 -0
- package/dist/org/chromium/v8-android/11.110.1/v8-android-11.110.1.aar +0 -0
- package/dist/org/chromium/v8-android/11.110.1/v8-android-11.110.1.aar.md5 +1 -0
- package/dist/org/chromium/v8-android/11.110.1/v8-android-11.110.1.aar.sha1 +1 -0
- package/dist/org/chromium/v8-android/11.110.1/v8-android-11.110.1.pom +10 -0
- package/dist/org/chromium/v8-android/11.110.1/v8-android-11.110.1.pom.md5 +1 -0
- package/dist/org/chromium/v8-android/11.110.1/v8-android-11.110.1.pom.sha1 +1 -0
- package/dist/org/chromium/v8-android/maven-metadata.xml +12 -0
- package/dist/org/chromium/v8-android/maven-metadata.xml.md5 +1 -0
- package/dist/org/chromium/v8-android/maven-metadata.xml.sha1 +1 -0
- package/package.json +24 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// Copyright 2021 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 INCLUDE_V8_EXCEPTION_H_
|
|
6
|
+
#define INCLUDE_V8_EXCEPTION_H_
|
|
7
|
+
|
|
8
|
+
#include <stddef.h>
|
|
9
|
+
|
|
10
|
+
#include "v8-local-handle.h" // NOLINT(build/include_directory)
|
|
11
|
+
#include "v8config.h" // NOLINT(build/include_directory)
|
|
12
|
+
|
|
13
|
+
namespace v8 {
|
|
14
|
+
|
|
15
|
+
class Context;
|
|
16
|
+
class Isolate;
|
|
17
|
+
class Message;
|
|
18
|
+
class StackTrace;
|
|
19
|
+
class String;
|
|
20
|
+
class Value;
|
|
21
|
+
|
|
22
|
+
namespace internal {
|
|
23
|
+
class Isolate;
|
|
24
|
+
class ThreadLocalTop;
|
|
25
|
+
} // namespace internal
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Create new error objects by calling the corresponding error object
|
|
29
|
+
* constructor with the message.
|
|
30
|
+
*/
|
|
31
|
+
class V8_EXPORT Exception {
|
|
32
|
+
public:
|
|
33
|
+
static Local<Value> RangeError(Local<String> message);
|
|
34
|
+
static Local<Value> ReferenceError(Local<String> message);
|
|
35
|
+
static Local<Value> SyntaxError(Local<String> message);
|
|
36
|
+
static Local<Value> TypeError(Local<String> message);
|
|
37
|
+
static Local<Value> WasmCompileError(Local<String> message);
|
|
38
|
+
static Local<Value> WasmLinkError(Local<String> message);
|
|
39
|
+
static Local<Value> WasmRuntimeError(Local<String> message);
|
|
40
|
+
static Local<Value> Error(Local<String> message);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Creates an error message for the given exception.
|
|
44
|
+
* Will try to reconstruct the original stack trace from the exception value,
|
|
45
|
+
* or capture the current stack trace if not available.
|
|
46
|
+
*/
|
|
47
|
+
static Local<Message> CreateMessage(Isolate* isolate, Local<Value> exception);
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Returns the original stack trace that was captured at the creation time
|
|
51
|
+
* of a given exception, or an empty handle if not available.
|
|
52
|
+
*/
|
|
53
|
+
static Local<StackTrace> GetStackTrace(Local<Value> exception);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* An external exception handler.
|
|
58
|
+
*/
|
|
59
|
+
class V8_EXPORT TryCatch {
|
|
60
|
+
public:
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new try/catch block and registers it with v8. Note that
|
|
63
|
+
* all TryCatch blocks should be stack allocated because the memory
|
|
64
|
+
* location itself is compared against JavaScript try/catch blocks.
|
|
65
|
+
*/
|
|
66
|
+
explicit TryCatch(Isolate* isolate);
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Unregisters and deletes this try/catch block.
|
|
70
|
+
*/
|
|
71
|
+
~TryCatch();
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Returns true if an exception has been caught by this try/catch block.
|
|
75
|
+
*/
|
|
76
|
+
bool HasCaught() const;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* For certain types of exceptions, it makes no sense to continue execution.
|
|
80
|
+
*
|
|
81
|
+
* If CanContinue returns false, the correct action is to perform any C++
|
|
82
|
+
* cleanup needed and then return. If CanContinue returns false and
|
|
83
|
+
* HasTerminated returns true, it is possible to call
|
|
84
|
+
* CancelTerminateExecution in order to continue calling into the engine.
|
|
85
|
+
*/
|
|
86
|
+
bool CanContinue() const;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Returns true if an exception has been caught due to script execution
|
|
90
|
+
* being terminated.
|
|
91
|
+
*
|
|
92
|
+
* There is no JavaScript representation of an execution termination
|
|
93
|
+
* exception. Such exceptions are thrown when the TerminateExecution
|
|
94
|
+
* methods are called to terminate a long-running script.
|
|
95
|
+
*
|
|
96
|
+
* If such an exception has been thrown, HasTerminated will return true,
|
|
97
|
+
* indicating that it is possible to call CancelTerminateExecution in order
|
|
98
|
+
* to continue calling into the engine.
|
|
99
|
+
*/
|
|
100
|
+
bool HasTerminated() const;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Throws the exception caught by this TryCatch in a way that avoids
|
|
104
|
+
* it being caught again by this same TryCatch. As with ThrowException
|
|
105
|
+
* it is illegal to execute any JavaScript operations after calling
|
|
106
|
+
* ReThrow; the caller must return immediately to where the exception
|
|
107
|
+
* is caught.
|
|
108
|
+
*/
|
|
109
|
+
Local<Value> ReThrow();
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Returns the exception caught by this try/catch block. If no exception has
|
|
113
|
+
* been caught an empty handle is returned.
|
|
114
|
+
*/
|
|
115
|
+
Local<Value> Exception() const;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Returns the .stack property of an object. If no .stack
|
|
119
|
+
* property is present an empty handle is returned.
|
|
120
|
+
*/
|
|
121
|
+
V8_WARN_UNUSED_RESULT static MaybeLocal<Value> StackTrace(
|
|
122
|
+
Local<Context> context, Local<Value> exception);
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Returns the .stack property of the thrown object. If no .stack property is
|
|
126
|
+
* present or if this try/catch block has not caught an exception, an empty
|
|
127
|
+
* handle is returned.
|
|
128
|
+
*/
|
|
129
|
+
V8_WARN_UNUSED_RESULT MaybeLocal<Value> StackTrace(
|
|
130
|
+
Local<Context> context) const;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Returns the message associated with this exception. If there is
|
|
134
|
+
* no message associated an empty handle is returned.
|
|
135
|
+
*/
|
|
136
|
+
Local<v8::Message> Message() const;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Clears any exceptions that may have been caught by this try/catch block.
|
|
140
|
+
* After this method has been called, HasCaught() will return false. Cancels
|
|
141
|
+
* the scheduled exception if it is caught and ReThrow() is not called before.
|
|
142
|
+
*
|
|
143
|
+
* It is not necessary to clear a try/catch block before using it again; if
|
|
144
|
+
* another exception is thrown the previously caught exception will just be
|
|
145
|
+
* overwritten. However, it is often a good idea since it makes it easier
|
|
146
|
+
* to determine which operation threw a given exception.
|
|
147
|
+
*/
|
|
148
|
+
void Reset();
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Set verbosity of the external exception handler.
|
|
152
|
+
*
|
|
153
|
+
* By default, exceptions that are caught by an external exception
|
|
154
|
+
* handler are not reported. Call SetVerbose with true on an
|
|
155
|
+
* external exception handler to have exceptions caught by the
|
|
156
|
+
* handler reported as if they were not caught.
|
|
157
|
+
*/
|
|
158
|
+
void SetVerbose(bool value);
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Returns true if verbosity is enabled.
|
|
162
|
+
*/
|
|
163
|
+
bool IsVerbose() const;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Set whether or not this TryCatch should capture a Message object
|
|
167
|
+
* which holds source information about where the exception
|
|
168
|
+
* occurred. True by default.
|
|
169
|
+
*/
|
|
170
|
+
void SetCaptureMessage(bool value);
|
|
171
|
+
|
|
172
|
+
TryCatch(const TryCatch&) = delete;
|
|
173
|
+
void operator=(const TryCatch&) = delete;
|
|
174
|
+
|
|
175
|
+
private:
|
|
176
|
+
// Declaring operator new and delete as deleted is not spec compliant.
|
|
177
|
+
// Therefore declare them private instead to disable dynamic alloc
|
|
178
|
+
void* operator new(size_t size);
|
|
179
|
+
void* operator new[](size_t size);
|
|
180
|
+
void operator delete(void*, size_t);
|
|
181
|
+
void operator delete[](void*, size_t);
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* There are cases when the raw address of C++ TryCatch object cannot be
|
|
185
|
+
* used for comparisons with addresses into the JS stack. The cases are:
|
|
186
|
+
* 1) ARM, ARM64 and MIPS simulators which have separate JS stack.
|
|
187
|
+
* 2) Address sanitizer allocates local C++ object in the heap when
|
|
188
|
+
* UseAfterReturn mode is enabled.
|
|
189
|
+
* This method returns address that can be used for comparisons with
|
|
190
|
+
* addresses into the JS stack. When neither simulator nor ASAN's
|
|
191
|
+
* UseAfterReturn is enabled, then the address returned will be the address
|
|
192
|
+
* of the C++ try catch handler itself.
|
|
193
|
+
*/
|
|
194
|
+
internal::Address JSStackComparableAddressPrivate() {
|
|
195
|
+
return js_stack_comparable_address_;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
void ResetInternal();
|
|
199
|
+
|
|
200
|
+
internal::Isolate* i_isolate_;
|
|
201
|
+
TryCatch* next_;
|
|
202
|
+
void* exception_;
|
|
203
|
+
void* message_obj_;
|
|
204
|
+
internal::Address js_stack_comparable_address_;
|
|
205
|
+
bool is_verbose_ : 1;
|
|
206
|
+
bool can_continue_ : 1;
|
|
207
|
+
bool capture_message_ : 1;
|
|
208
|
+
bool rethrow_ : 1;
|
|
209
|
+
bool has_terminated_ : 1;
|
|
210
|
+
|
|
211
|
+
friend class internal::Isolate;
|
|
212
|
+
friend class internal::ThreadLocalTop;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
} // namespace v8
|
|
216
|
+
|
|
217
|
+
#endif // INCLUDE_V8_EXCEPTION_H_
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Copyright 2021 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 INCLUDE_V8_EXTENSION_H_
|
|
6
|
+
#define INCLUDE_V8_EXTENSION_H_
|
|
7
|
+
|
|
8
|
+
#include <memory>
|
|
9
|
+
|
|
10
|
+
#include "v8-local-handle.h" // NOLINT(build/include_directory)
|
|
11
|
+
#include "v8-primitive.h" // NOLINT(build/include_directory)
|
|
12
|
+
#include "v8config.h" // NOLINT(build/include_directory)
|
|
13
|
+
|
|
14
|
+
namespace v8 {
|
|
15
|
+
|
|
16
|
+
class FunctionTemplate;
|
|
17
|
+
|
|
18
|
+
// --- Extensions ---
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Ignore
|
|
22
|
+
*/
|
|
23
|
+
class V8_EXPORT Extension {
|
|
24
|
+
public:
|
|
25
|
+
// Note that the strings passed into this constructor must live as long
|
|
26
|
+
// as the Extension itself.
|
|
27
|
+
Extension(const char* name, const char* source = nullptr, int dep_count = 0,
|
|
28
|
+
const char** deps = nullptr, int source_length = -1);
|
|
29
|
+
virtual ~Extension() { delete source_; }
|
|
30
|
+
virtual Local<FunctionTemplate> GetNativeFunctionTemplate(
|
|
31
|
+
Isolate* isolate, Local<String> name) {
|
|
32
|
+
return Local<FunctionTemplate>();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const char* name() const { return name_; }
|
|
36
|
+
size_t source_length() const { return source_length_; }
|
|
37
|
+
const String::ExternalOneByteStringResource* source() const {
|
|
38
|
+
return source_;
|
|
39
|
+
}
|
|
40
|
+
int dependency_count() const { return dep_count_; }
|
|
41
|
+
const char** dependencies() const { return deps_; }
|
|
42
|
+
void set_auto_enable(bool value) { auto_enable_ = value; }
|
|
43
|
+
bool auto_enable() { return auto_enable_; }
|
|
44
|
+
|
|
45
|
+
// Disallow copying and assigning.
|
|
46
|
+
Extension(const Extension&) = delete;
|
|
47
|
+
void operator=(const Extension&) = delete;
|
|
48
|
+
|
|
49
|
+
private:
|
|
50
|
+
const char* name_;
|
|
51
|
+
size_t source_length_; // expected to initialize before source_
|
|
52
|
+
String::ExternalOneByteStringResource* source_;
|
|
53
|
+
int dep_count_;
|
|
54
|
+
const char** deps_;
|
|
55
|
+
bool auto_enable_;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
void V8_EXPORT RegisterExtension(std::unique_ptr<Extension>);
|
|
59
|
+
|
|
60
|
+
} // namespace v8
|
|
61
|
+
|
|
62
|
+
#endif // INCLUDE_V8_EXTENSION_H_
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Copyright 2021 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 INCLUDE_V8_EXTERNAL_H_
|
|
6
|
+
#define INCLUDE_V8_EXTERNAL_H_
|
|
7
|
+
|
|
8
|
+
#include "v8-value.h" // NOLINT(build/include_directory)
|
|
9
|
+
#include "v8config.h" // NOLINT(build/include_directory)
|
|
10
|
+
|
|
11
|
+
namespace v8 {
|
|
12
|
+
|
|
13
|
+
class Isolate;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A JavaScript value that wraps a C++ void*. This type of value is mainly used
|
|
17
|
+
* to associate C++ data structures with JavaScript objects.
|
|
18
|
+
*/
|
|
19
|
+
class V8_EXPORT External : public Value {
|
|
20
|
+
public:
|
|
21
|
+
static Local<External> New(Isolate* isolate, void* value);
|
|
22
|
+
V8_INLINE static External* Cast(Value* value) {
|
|
23
|
+
#ifdef V8_ENABLE_CHECKS
|
|
24
|
+
CheckCast(value);
|
|
25
|
+
#endif
|
|
26
|
+
return static_cast<External*>(value);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
void* Value() const;
|
|
30
|
+
|
|
31
|
+
private:
|
|
32
|
+
static void CheckCast(v8::Value* obj);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
} // namespace v8
|
|
36
|
+
|
|
37
|
+
#endif // INCLUDE_V8_EXTERNAL_H_
|