node-linux-arm64 18.11.0 → 19.0.0
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/CHANGELOG.md +132 -1731
- package/bin/node +0 -0
- package/include/node/common.gypi +1 -1
- package/include/node/config.gypi +5 -5
- package/include/node/cppgc/common.h +0 -1
- package/include/node/node.h +6 -6
- package/include/node/node_version.h +3 -3
- package/include/node/v8-callbacks.h +19 -5
- package/include/node/v8-context.h +12 -8
- package/include/node/v8-date.h +5 -0
- package/include/node/v8-embedder-heap.h +8 -3
- package/include/node/v8-exception.h +1 -1
- package/include/node/v8-function.h +8 -0
- package/include/node/v8-initialization.h +23 -49
- package/include/node/v8-internal.h +312 -123
- package/include/node/v8-isolate.h +26 -42
- package/include/node/v8-local-handle.h +5 -5
- package/include/node/v8-locker.h +0 -11
- package/include/node/v8-maybe.h +24 -1
- package/include/node/v8-message.h +2 -4
- package/include/node/v8-microtask-queue.h +1 -1
- package/include/node/v8-object.h +8 -15
- package/include/node/v8-persistent-handle.h +0 -2
- package/include/node/v8-platform.h +54 -25
- package/include/node/v8-primitive.h +8 -8
- package/include/node/v8-profiler.h +84 -22
- package/include/node/v8-regexp.h +2 -1
- package/include/node/v8-script.h +62 -6
- package/include/node/v8-template.h +13 -76
- package/include/node/v8-value-serializer.h +46 -23
- package/include/node/v8-version.h +3 -3
- package/include/node/v8-wasm.h +5 -62
- package/include/node/v8-weak-callback-info.h +0 -7
- package/include/node/v8config.h +247 -13
- package/package.json +1 -1
- package/share/doc/node/gdbinit +9 -1
- package/share/man/man1/node.1 +9 -6
- package/share/systemtap/tapset/node.stp +0 -146
package/bin/node
CHANGED
|
Binary file
|
package/include/node/common.gypi
CHANGED
package/include/node/config.gypi
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
'libdir': 'lib',
|
|
23
23
|
'llvm_version': '0.0',
|
|
24
24
|
'napi_build_version': '8',
|
|
25
|
+
'node_builtin_shareable_builtins': ['deps/cjs-module-lexer/lexer.js', 'deps/cjs-module-lexer/dist/lexer.js', 'deps/undici/undici.js'],
|
|
25
26
|
'node_byteorder': 'little',
|
|
26
27
|
'node_debug_lib': 'false',
|
|
27
28
|
'node_enable_d8': 'false',
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
'lib/http2.js',
|
|
64
65
|
'lib/https.js',
|
|
65
66
|
'lib/inspector.js',
|
|
67
|
+
'lib/inspector/promises.js',
|
|
66
68
|
'lib/internal/abort_controller.js',
|
|
67
69
|
'lib/internal/assert.js',
|
|
68
70
|
'lib/internal/assert/assertion_error.js',
|
|
@@ -118,7 +120,6 @@
|
|
|
118
120
|
'lib/internal/dns/callback_resolver.js',
|
|
119
121
|
'lib/internal/dns/promises.js',
|
|
120
122
|
'lib/internal/dns/utils.js',
|
|
121
|
-
'lib/internal/dtrace.js',
|
|
122
123
|
'lib/internal/encoding.js',
|
|
123
124
|
'lib/internal/error_serdes.js',
|
|
124
125
|
'lib/internal/errors.js',
|
|
@@ -274,6 +275,7 @@
|
|
|
274
275
|
'lib/internal/wasm_web_api.js',
|
|
275
276
|
'lib/internal/watch_mode/files_watcher.js',
|
|
276
277
|
'lib/internal/watchdog.js',
|
|
278
|
+
'lib/internal/webidl.js',
|
|
277
279
|
'lib/internal/webstreams/adapters.js',
|
|
278
280
|
'lib/internal/webstreams/compression.js',
|
|
279
281
|
'lib/internal/webstreams/encoding.js',
|
|
@@ -319,7 +321,7 @@
|
|
|
319
321
|
'lib/wasi.js',
|
|
320
322
|
'lib/worker_threads.js',
|
|
321
323
|
'lib/zlib.js'],
|
|
322
|
-
'node_module_version':
|
|
324
|
+
'node_module_version': 111,
|
|
323
325
|
'node_no_browser_globals': 'false',
|
|
324
326
|
'node_prefix': '/',
|
|
325
327
|
'node_release_urlbase': 'https://nodejs.org/download/release/',
|
|
@@ -337,8 +339,6 @@
|
|
|
337
339
|
'node_tag': '',
|
|
338
340
|
'node_target_type': 'executable',
|
|
339
341
|
'node_use_bundled_v8': 'true',
|
|
340
|
-
'node_use_dtrace': 'false',
|
|
341
|
-
'node_use_etw': 'false',
|
|
342
342
|
'node_use_node_code_cache': 'true',
|
|
343
343
|
'node_use_node_snapshot': 'true',
|
|
344
344
|
'node_use_openssl': 'true',
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
'openssl_is_fips': 'false',
|
|
349
349
|
'openssl_quic': 'true',
|
|
350
350
|
'ossfuzz': 'false',
|
|
351
|
-
'shlib_suffix': 'so.
|
|
351
|
+
'shlib_suffix': 'so.111',
|
|
352
352
|
'target_arch': 'arm64',
|
|
353
353
|
'v8_enable_31bit_smis_on_64bit_arch': 0,
|
|
354
354
|
'v8_enable_gdbjit': 0,
|
package/include/node/node.h
CHANGED
|
@@ -309,6 +309,10 @@ NODE_EXTERN int Start(int argc, char* argv[]);
|
|
|
309
309
|
// in the loop and / or actively executing JavaScript code).
|
|
310
310
|
NODE_EXTERN int Stop(Environment* env);
|
|
311
311
|
|
|
312
|
+
// Set up per-process state needed to run Node.js. This will consume arguments
|
|
313
|
+
// from argv, fill exec_argv, and possibly add errors resulting from parsing
|
|
314
|
+
// the arguments to `errors`. The return value is a suggested exit code for the
|
|
315
|
+
// program; If it is 0, then initializing Node.js succeeded.
|
|
312
316
|
// This runs a subset of the initialization performed by
|
|
313
317
|
// InitializeOncePerProcess(), which supersedes this function.
|
|
314
318
|
// The subset is roughly equivalent to the one given by
|
|
@@ -318,12 +322,8 @@ NODE_DEPRECATED("Use InitializeOncePerProcess() instead",
|
|
|
318
322
|
std::vector<std::string>* argv,
|
|
319
323
|
std::vector<std::string>* exec_argv,
|
|
320
324
|
std::vector<std::string>* errors,
|
|
321
|
-
ProcessInitializationFlags::Flags flags
|
|
322
|
-
|
|
323
|
-
NODE_EXTERN int InitializeNodeWithArgs(
|
|
324
|
-
std::vector<std::string>* argv,
|
|
325
|
-
std::vector<std::string>* exec_argv,
|
|
326
|
-
std::vector<std::string>* errors));
|
|
325
|
+
ProcessInitializationFlags::Flags flags =
|
|
326
|
+
ProcessInitializationFlags::kNoFlags));
|
|
327
327
|
|
|
328
328
|
// Set up per-process state needed to run Node.js. This will consume arguments
|
|
329
329
|
// from args, and return information about the initialization success,
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
#ifndef SRC_NODE_VERSION_H_
|
|
23
23
|
#define SRC_NODE_VERSION_H_
|
|
24
24
|
|
|
25
|
-
#define NODE_MAJOR_VERSION
|
|
26
|
-
#define NODE_MINOR_VERSION
|
|
25
|
+
#define NODE_MAJOR_VERSION 19
|
|
26
|
+
#define NODE_MINOR_VERSION 0
|
|
27
27
|
#define NODE_PATCH_VERSION 0
|
|
28
28
|
|
|
29
29
|
#define NODE_VERSION_IS_LTS 0
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
* version matching should open a pull request to reserve a number in this
|
|
90
90
|
* registry.
|
|
91
91
|
*/
|
|
92
|
-
#define NODE_MODULE_VERSION
|
|
92
|
+
#define NODE_MODULE_VERSION 111
|
|
93
93
|
|
|
94
94
|
// The NAPI_VERSION provided by this version of the runtime. This is the version
|
|
95
95
|
// which the Node binary being built supports.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
#include "cppgc/common.h"
|
|
13
13
|
#include "v8-data.h" // NOLINT(build/include_directory)
|
|
14
14
|
#include "v8-local-handle.h" // NOLINT(build/include_directory)
|
|
15
|
+
#include "v8-promise.h" // NOLINT(build/include_directory)
|
|
15
16
|
#include "v8config.h" // NOLINT(build/include_directory)
|
|
16
17
|
|
|
17
18
|
#if defined(V8_OS_WIN)
|
|
@@ -105,7 +106,7 @@ struct JitCodeEvent {
|
|
|
105
106
|
size_t line_number_table_size;
|
|
106
107
|
};
|
|
107
108
|
|
|
108
|
-
wasm_source_info_t* wasm_source_info;
|
|
109
|
+
wasm_source_info_t* wasm_source_info = nullptr;
|
|
109
110
|
|
|
110
111
|
union {
|
|
111
112
|
// Only valid for CODE_ADDED.
|
|
@@ -216,7 +217,13 @@ using AddHistogramSampleCallback = void (*)(void* histogram, int sample);
|
|
|
216
217
|
|
|
217
218
|
using FatalErrorCallback = void (*)(const char* location, const char* message);
|
|
218
219
|
|
|
219
|
-
|
|
220
|
+
struct OOMDetails {
|
|
221
|
+
bool is_heap_oom = false;
|
|
222
|
+
const char* detail = nullptr;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
using OOMErrorCallback = void (*)(const char* location,
|
|
226
|
+
const OOMDetails& details);
|
|
220
227
|
|
|
221
228
|
using MessageCallback = void (*)(Local<Message> message, Local<Value> data);
|
|
222
229
|
|
|
@@ -231,8 +238,11 @@ enum class CrashKeyId {
|
|
|
231
238
|
kIsolateAddress,
|
|
232
239
|
kReadonlySpaceFirstPageAddress,
|
|
233
240
|
kMapSpaceFirstPageAddress,
|
|
241
|
+
kCodeRangeBaseAddress,
|
|
234
242
|
kCodeSpaceFirstPageAddress,
|
|
235
243
|
kDumpType,
|
|
244
|
+
kSnapshotChecksumCalculated,
|
|
245
|
+
kSnapshotChecksumExpected,
|
|
236
246
|
};
|
|
237
247
|
|
|
238
248
|
using AddCrashKeyCallback = void (*)(CrashKeyId id, const std::string& value);
|
|
@@ -300,6 +310,13 @@ using ApiImplementationCallback = void (*)(const FunctionCallbackInfo<Value>&);
|
|
|
300
310
|
// --- Callback for WebAssembly.compileStreaming ---
|
|
301
311
|
using WasmStreamingCallback = void (*)(const FunctionCallbackInfo<Value>&);
|
|
302
312
|
|
|
313
|
+
enum class WasmAsyncSuccess { kSuccess, kFail };
|
|
314
|
+
|
|
315
|
+
// --- Callback called when async WebAssembly operations finish ---
|
|
316
|
+
using WasmAsyncResolvePromiseCallback = void (*)(
|
|
317
|
+
Isolate* isolate, Local<Context> context, Local<Promise::Resolver> resolver,
|
|
318
|
+
Local<Value> result, WasmAsyncSuccess success);
|
|
319
|
+
|
|
303
320
|
// --- Callback for loading source map file for Wasm profiling support
|
|
304
321
|
using WasmLoadSourceMapCallback = Local<String> (*)(Isolate* isolate,
|
|
305
322
|
const char* name);
|
|
@@ -310,9 +327,6 @@ using WasmSimdEnabledCallback = bool (*)(Local<Context> context);
|
|
|
310
327
|
// --- Callback for checking if WebAssembly exceptions are enabled ---
|
|
311
328
|
using WasmExceptionsEnabledCallback = bool (*)(Local<Context> context);
|
|
312
329
|
|
|
313
|
-
// --- Callback for checking if WebAssembly dynamic tiering is enabled ---
|
|
314
|
-
using WasmDynamicTieringEnabledCallback = bool (*)(Local<Context> context);
|
|
315
|
-
|
|
316
330
|
// --- Callback for checking if the SharedArrayBuffer constructor is enabled ---
|
|
317
331
|
using SharedArrayBufferConstructorEnabledCallback =
|
|
318
332
|
bool (*)(Local<Context> context);
|
|
@@ -244,6 +244,12 @@ class V8_EXPORT Context : public Data {
|
|
|
244
244
|
*/
|
|
245
245
|
void SetErrorMessageForCodeGenerationFromStrings(Local<String> message);
|
|
246
246
|
|
|
247
|
+
/**
|
|
248
|
+
* Sets the error description for the exception that is thrown when
|
|
249
|
+
* wasm code generation is not allowed.
|
|
250
|
+
*/
|
|
251
|
+
void SetErrorMessageForWasmCodeGeneration(Local<String> message);
|
|
252
|
+
|
|
247
253
|
/**
|
|
248
254
|
* Return data that was previously attached to the context snapshot via
|
|
249
255
|
* SnapshotCreator, and removes the reference to it.
|
|
@@ -374,15 +380,13 @@ void* Context::GetAlignedPointerFromEmbedderData(int index) {
|
|
|
374
380
|
A ctx = *reinterpret_cast<const A*>(this);
|
|
375
381
|
A embedder_data =
|
|
376
382
|
I::ReadTaggedPointerField(ctx, I::kNativeContextEmbedderDataOffset);
|
|
377
|
-
int value_offset =
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
#endif
|
|
382
|
-
internal::Isolate* isolate = I::GetIsolateForSandbox(ctx);
|
|
383
|
+
int value_offset = I::kEmbedderDataArrayHeaderSize +
|
|
384
|
+
(I::kEmbedderDataSlotSize * index) +
|
|
385
|
+
I::kEmbedderDataSlotExternalPointerOffset;
|
|
386
|
+
Isolate* isolate = I::GetIsolateForSandbox(ctx);
|
|
383
387
|
return reinterpret_cast<void*>(
|
|
384
|
-
I::ReadExternalPointerField(
|
|
385
|
-
|
|
388
|
+
I::ReadExternalPointerField<internal::kEmbedderDataSlotPayloadTag>(
|
|
389
|
+
isolate, embedder_data, value_offset));
|
|
386
390
|
#else
|
|
387
391
|
return SlowGetAlignedPointerFromEmbedderData(index);
|
|
388
392
|
#endif
|
package/include/node/v8-date.h
CHANGED
|
@@ -27,6 +27,11 @@ class V8_EXPORT Date : public Object {
|
|
|
27
27
|
*/
|
|
28
28
|
double ValueOf() const;
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Generates ISO string representation.
|
|
32
|
+
*/
|
|
33
|
+
v8::Local<v8::String> ToISOString() const;
|
|
34
|
+
|
|
30
35
|
V8_INLINE static Date* Cast(Value* value) {
|
|
31
36
|
#ifdef V8_ENABLE_CHECKS
|
|
32
37
|
CheckCast(value);
|
|
@@ -69,7 +69,12 @@ class V8_EXPORT EmbedderRootsHandler {
|
|
|
69
69
|
* trace through its heap and use reporter to report each JavaScript object
|
|
70
70
|
* reachable from any of the given wrappers.
|
|
71
71
|
*/
|
|
72
|
-
class V8_EXPORT
|
|
72
|
+
class V8_EXPORT
|
|
73
|
+
// GCC doesn't like combining __attribute__(()) with [[deprecated]].
|
|
74
|
+
#ifdef __clang__
|
|
75
|
+
V8_DEPRECATE_SOON("Use CppHeap when working with v8::TracedReference.")
|
|
76
|
+
#endif // __clang__
|
|
77
|
+
EmbedderHeapTracer {
|
|
73
78
|
public:
|
|
74
79
|
using EmbedderStackState = cppgc::EmbedderStackState;
|
|
75
80
|
|
|
@@ -205,10 +210,10 @@ class V8_EXPORT EmbedderHeapTracer {
|
|
|
205
210
|
* Returns the v8::Isolate this tracer is attached too and |nullptr| if it
|
|
206
211
|
* is not attached to any v8::Isolate.
|
|
207
212
|
*/
|
|
208
|
-
v8::Isolate* isolate() const { return
|
|
213
|
+
v8::Isolate* isolate() const { return v8_isolate_; }
|
|
209
214
|
|
|
210
215
|
protected:
|
|
211
|
-
v8::Isolate*
|
|
216
|
+
v8::Isolate* v8_isolate_ = nullptr;
|
|
212
217
|
|
|
213
218
|
friend class internal::LocalEmbedderHeapTracer;
|
|
214
219
|
};
|
|
@@ -106,6 +106,14 @@ class V8_EXPORT Function : public Object {
|
|
|
106
106
|
V8_WARN_UNUSED_RESULT MaybeLocal<String> FunctionProtoToString(
|
|
107
107
|
Local<Context> context);
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Returns true if the function does nothing.
|
|
111
|
+
* The function returns false on error.
|
|
112
|
+
* Note that this function is experimental. Embedders should not rely on
|
|
113
|
+
* this existing. We may remove this function in the future.
|
|
114
|
+
*/
|
|
115
|
+
V8_WARN_UNUSED_RESULT bool Experimental_IsNopFunction() const;
|
|
116
|
+
|
|
109
117
|
ScriptOrigin GetScriptOrigin() const;
|
|
110
118
|
V8_INLINE static Function* Cast(Value* value) {
|
|
111
119
|
#ifdef V8_ENABLE_CHECKS
|
|
@@ -100,9 +100,6 @@ class V8_EXPORT V8 {
|
|
|
100
100
|
const int kBuildConfiguration =
|
|
101
101
|
(internal::PointerCompressionIsEnabled() ? kPointerCompression : 0) |
|
|
102
102
|
(internal::SmiValuesAre31Bits() ? k31BitSmis : 0) |
|
|
103
|
-
(internal::SandboxedExternalPointersAreEnabled()
|
|
104
|
-
? kSandboxedExternalPointers
|
|
105
|
-
: 0) |
|
|
106
103
|
(internal::SandboxIsEnabled() ? kSandbox : 0);
|
|
107
104
|
return Initialize(kBuildConfiguration);
|
|
108
105
|
}
|
|
@@ -184,30 +181,19 @@ class V8_EXPORT V8 {
|
|
|
184
181
|
* V8 was disposed.
|
|
185
182
|
*/
|
|
186
183
|
static void DisposePlatform();
|
|
187
|
-
V8_DEPRECATED("Use DisposePlatform()")
|
|
188
|
-
static void ShutdownPlatform() { DisposePlatform(); }
|
|
189
|
-
|
|
190
|
-
#ifdef V8_SANDBOX
|
|
191
|
-
//
|
|
192
|
-
// Sandbox related API.
|
|
193
|
-
//
|
|
194
|
-
// This API is not yet stable and subject to changes in the future.
|
|
195
|
-
//
|
|
196
184
|
|
|
185
|
+
#if defined(V8_ENABLE_SANDBOX)
|
|
197
186
|
/**
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
* This must be invoked after the platform was initialized but before V8 is
|
|
201
|
-
* initialized. The sandbox is torn down during platform shutdown.
|
|
202
|
-
* Returns true on success, false otherwise.
|
|
187
|
+
* Returns true if the sandbox is configured securely.
|
|
203
188
|
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
189
|
+
* If V8 cannot create a regular sandbox during initialization, for example
|
|
190
|
+
* because not enough virtual address space can be reserved, it will instead
|
|
191
|
+
* create a fallback sandbox that still allows it to function normally but
|
|
192
|
+
* does not have the same security properties as a regular sandbox. This API
|
|
193
|
+
* can be used to determine if such a fallback sandbox is being used, in
|
|
194
|
+
* which case it will return false.
|
|
207
195
|
*/
|
|
208
|
-
static bool
|
|
209
|
-
V8_DEPRECATE_SOON("Use InitializeSandbox()")
|
|
210
|
-
static bool InitializeVirtualMemoryCage() { return InitializeSandbox(); }
|
|
196
|
+
static bool IsSandboxConfiguredSecurely();
|
|
211
197
|
|
|
212
198
|
/**
|
|
213
199
|
* Provides access to the virtual address subspace backing the sandbox.
|
|
@@ -220,39 +206,29 @@ class V8_EXPORT V8 {
|
|
|
220
206
|
* and so in particular the contents of pages allocagted in this virtual
|
|
221
207
|
* address space, arbitrarily and concurrently. Due to this, it is
|
|
222
208
|
* recommended to to only place pure data buffers in them.
|
|
223
|
-
*
|
|
224
|
-
* This function must only be called after initializing the sandbox.
|
|
225
209
|
*/
|
|
226
210
|
static VirtualAddressSpace* GetSandboxAddressSpace();
|
|
227
|
-
V8_DEPRECATE_SOON("Use GetSandboxAddressSpace()")
|
|
228
|
-
static PageAllocator* GetVirtualMemoryCagePageAllocator();
|
|
229
211
|
|
|
230
212
|
/**
|
|
231
213
|
* Returns the size of the sandbox in bytes.
|
|
232
214
|
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
215
|
+
* This represents the size of the address space that V8 can directly address
|
|
216
|
+
* and in which it allocates its objects.
|
|
235
217
|
*/
|
|
236
218
|
static size_t GetSandboxSizeInBytes();
|
|
237
|
-
V8_DEPRECATE_SOON("Use GetSandboxSizeInBytes()")
|
|
238
|
-
static size_t GetVirtualMemoryCageSizeInBytes() {
|
|
239
|
-
return GetSandboxSizeInBytes();
|
|
240
|
-
}
|
|
241
219
|
|
|
242
220
|
/**
|
|
243
|
-
* Returns
|
|
221
|
+
* Returns the size of the address space reservation backing the sandbox.
|
|
244
222
|
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
223
|
+
* This may be larger than the sandbox (i.e. |GetSandboxSizeInBytes()|) due
|
|
224
|
+
* to surrounding guard regions, or may be smaller than the sandbox in case a
|
|
225
|
+
* fallback sandbox is being used, which will use a smaller virtual address
|
|
226
|
+
* space reservation. In the latter case this will also be different from
|
|
227
|
+
* |GetSandboxAddressSpace()->size()| as that will cover a larger part of the
|
|
228
|
+
* address space than what has actually been reserved.
|
|
249
229
|
*/
|
|
250
|
-
static
|
|
251
|
-
|
|
252
|
-
static bool IsUsingSecureVirtualMemoryCage() {
|
|
253
|
-
return IsSandboxConfiguredSecurely();
|
|
254
|
-
}
|
|
255
|
-
#endif
|
|
230
|
+
static size_t GetSandboxReservationSizeInBytes();
|
|
231
|
+
#endif // V8_ENABLE_SANDBOX
|
|
256
232
|
|
|
257
233
|
/**
|
|
258
234
|
* Activate trap-based bounds checking for WebAssembly.
|
|
@@ -273,7 +249,7 @@ class V8_EXPORT V8 {
|
|
|
273
249
|
* exceptions in V8-generated code.
|
|
274
250
|
*/
|
|
275
251
|
static void SetUnhandledExceptionCallback(
|
|
276
|
-
UnhandledExceptionCallback
|
|
252
|
+
UnhandledExceptionCallback callback);
|
|
277
253
|
#endif
|
|
278
254
|
|
|
279
255
|
/**
|
|
@@ -281,8 +257,7 @@ class V8_EXPORT V8 {
|
|
|
281
257
|
* v8 has encountered a fatal failure to allocate memory and is about to
|
|
282
258
|
* terminate.
|
|
283
259
|
*/
|
|
284
|
-
|
|
285
|
-
static void SetFatalMemoryErrorCallback(OOMErrorCallback oom_error_callback);
|
|
260
|
+
static void SetFatalMemoryErrorCallback(OOMErrorCallback callback);
|
|
286
261
|
|
|
287
262
|
/**
|
|
288
263
|
* Get statistics about the shared memory usage.
|
|
@@ -295,8 +270,7 @@ class V8_EXPORT V8 {
|
|
|
295
270
|
enum BuildConfigurationFeatures {
|
|
296
271
|
kPointerCompression = 1 << 0,
|
|
297
272
|
k31BitSmis = 1 << 1,
|
|
298
|
-
|
|
299
|
-
kSandbox = 1 << 3,
|
|
273
|
+
kSandbox = 1 << 2,
|
|
300
274
|
};
|
|
301
275
|
|
|
302
276
|
/**
|