Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9011db4

Browse filesBrowse files
addaleaxtargos
authored andcommitted
deps: move more deprecations to V8_DEPRECATED
These APIs have been deprecated upstream in V8. PR-URL: #23414 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 787e13b commit 9011db4
Copy full SHA for 9011db4

File tree

Expand file treeCollapse file tree

2 files changed

+25
-25
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+25
-25
lines changed
Open diff view settings
Collapse file

‎common.gypi‎

Copy file name to clipboardExpand all lines: common.gypi
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
# Reset this number to 0 on major V8 upgrades.
3535
# Increment by one for each non-official patch applied to deps/v8.
36-
'v8_embedder_string': '-node.6',
36+
'v8_embedder_string': '-node.7',
3737

3838
# Enable disassembler for `--print-code` v8 options
3939
'v8_enable_disassembler': 1,
Collapse file

‎deps/v8/include/v8.h‎

Copy file name to clipboardExpand all lines: deps/v8/include/v8.h
+24-24Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,9 +1963,9 @@ class V8_EXPORT JSON {
19631963
* \param json_string The string to parse.
19641964
* \return The corresponding value if successfully parsed.
19651965
*/
1966-
static V8_DEPRECATE_SOON("Use the maybe version taking context",
1967-
MaybeLocal<Value> Parse(Isolate* isolate,
1968-
Local<String> json_string));
1966+
static V8_DEPRECATED("Use the maybe version taking context",
1967+
MaybeLocal<Value> Parse(Isolate* isolate,
1968+
Local<String> json_string));
19691969
static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse(
19701970
Local<Context> context, Local<String> json_string);
19711971

@@ -2065,7 +2065,7 @@ class V8_EXPORT ValueSerializer {
20652065
* Returns the stored data. This serializer should not be used once the buffer
20662066
* is released. The contents are undefined if a previous write has failed.
20672067
*/
2068-
V8_DEPRECATE_SOON("Use Release()", std::vector<uint8_t> ReleaseBuffer());
2068+
V8_DEPRECATED("Use Release()", std::vector<uint8_t> ReleaseBuffer());
20692069

20702070
/**
20712071
* Returns the stored data (allocated using the delegate's
@@ -2086,10 +2086,10 @@ class V8_EXPORT ValueSerializer {
20862086
/**
20872087
* Similar to TransferArrayBuffer, but for SharedArrayBuffer.
20882088
*/
2089-
V8_DEPRECATE_SOON("Use Delegate::GetSharedArrayBufferId",
2090-
void TransferSharedArrayBuffer(
2091-
uint32_t transfer_id,
2092-
Local<SharedArrayBuffer> shared_array_buffer));
2089+
V8_DEPRECATED("Use Delegate::GetSharedArrayBufferId",
2090+
void TransferSharedArrayBuffer(
2091+
uint32_t transfer_id,
2092+
Local<SharedArrayBuffer> shared_array_buffer));
20932093

20942094
/**
20952095
* Indicate whether to treat ArrayBufferView objects as host objects,
@@ -3439,7 +3439,7 @@ class V8_EXPORT Object : public Value {
34393439
V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
34403440
Local<Value> key);
34413441

3442-
V8_DEPRECATE_SOON("Use maybe version", bool Delete(Local<Value> key));
3442+
V8_DEPRECATED("Use maybe version", bool Delete(Local<Value> key));
34433443
V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context,
34443444
Local<Value> key);
34453445

@@ -5148,8 +5148,8 @@ class V8_EXPORT SharedArrayBuffer : public Object {
51485148
*/
51495149
class V8_EXPORT Date : public Object {
51505150
public:
5151-
static V8_DEPRECATE_SOON("Use maybe version.",
5152-
Local<Value> New(Isolate* isolate, double time));
5151+
static V8_DEPRECATED("Use maybe version.",
5152+
Local<Value> New(Isolate* isolate, double time));
51535153
static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
51545154
double time);
51555155

@@ -6408,14 +6408,14 @@ class V8_EXPORT ResourceConstraints {
64086408
uint64_t virtual_memory_limit);
64096409

64106410
// Returns the max semi-space size in MB.
6411-
V8_DEPRECATE_SOON("Use max_semi_space_size_in_kb()",
6412-
size_t max_semi_space_size()) {
6411+
V8_DEPRECATED("Use max_semi_space_size_in_kb()",
6412+
size_t max_semi_space_size()) {
64136413
return max_semi_space_size_in_kb_ / 1024;
64146414
}
64156415

64166416
// Sets the max semi-space size in MB.
6417-
V8_DEPRECATE_SOON("Use set_max_semi_space_size_in_kb(size_t limit_in_kb)",
6418-
void set_max_semi_space_size(size_t limit_in_mb)) {
6417+
V8_DEPRECATED("Use set_max_semi_space_size_in_kb(size_t limit_in_kb)",
6418+
void set_max_semi_space_size(size_t limit_in_mb)) {
64196419
max_semi_space_size_in_kb_ = limit_in_mb * 1024;
64206420
}
64216421

@@ -6433,12 +6433,12 @@ class V8_EXPORT ResourceConstraints {
64336433
void set_max_old_space_size(size_t limit_in_mb) {
64346434
max_old_space_size_ = limit_in_mb;
64356435
}
6436-
V8_DEPRECATE_SOON("max_executable_size_ is subsumed by max_old_space_size_",
6437-
size_t max_executable_size() const) {
6436+
V8_DEPRECATED("max_executable_size_ is subsumed by max_old_space_size_",
6437+
size_t max_executable_size() const) {
64386438
return max_executable_size_;
64396439
}
6440-
V8_DEPRECATE_SOON("max_executable_size_ is subsumed by max_old_space_size_",
6441-
void set_max_executable_size(size_t limit_in_mb)) {
6440+
V8_DEPRECATED("max_executable_size_ is subsumed by max_old_space_size_",
6441+
void set_max_executable_size(size_t limit_in_mb)) {
64426442
max_executable_size_ = limit_in_mb;
64436443
}
64446444
uint32_t* stack_limit() const { return stack_limit_; }
@@ -7067,9 +7067,9 @@ class V8_EXPORT EmbedderHeapTracer {
70677067
* Note: Only one of the AdvanceTracing methods needs to be overriden by the
70687068
* embedder.
70697069
*/
7070-
V8_DEPRECATE_SOON("Use void AdvanceTracing(deadline_in_ms)",
7071-
virtual bool AdvanceTracing(
7072-
double deadline_in_ms, AdvanceTracingActions actions)) {
7070+
V8_DEPRECATED("Use void AdvanceTracing(deadline_in_ms)",
7071+
virtual bool AdvanceTracing(
7072+
double deadline_in_ms, AdvanceTracingActions actions)) {
70737073
return false;
70747074
}
70757075

@@ -7108,8 +7108,8 @@ class V8_EXPORT EmbedderHeapTracer {
71087108
* Note: Only one of the EnterFinalPause methods needs to be overriden by the
71097109
* embedder.
71107110
*/
7111-
V8_DEPRECATE_SOON("Use void EnterFinalPause(EmbedderStackState)",
7112-
virtual void EnterFinalPause()) {}
7111+
V8_DEPRECATED("Use void EnterFinalPause(EmbedderStackState)",
7112+
virtual void EnterFinalPause()) {}
71137113
virtual void EnterFinalPause(EmbedderStackState stack_state);
71147114

71157115
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.