Remove always-true --harmony-symbol-description runtime flag
It shipped in Chrome 70. Bug: v8:7807, v8:8562 Change-Id: I5c5a9fc23656018ee6e9115af7a0c779230e681b Reviewed-on: https://chromium-review.googlesource.com/c/1450787 Commit-Queue: Mathias Bynens <mathias@chromium.org> Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/master@{#59589}
This commit is contained in:
parent
828b518a88
commit
3b4cadedee
@ -2159,6 +2159,11 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
|
||||
Builtins::kSymbolPrototypeValueOf, 0, true,
|
||||
BuiltinFunctionId::kSymbolPrototypeValueOf);
|
||||
|
||||
// Install the Symbol.prototype.description getter.
|
||||
SimpleInstallGetter(isolate_, prototype,
|
||||
factory->InternalizeUtf8String("description"),
|
||||
Builtins::kSymbolPrototypeDescriptionGetter, true);
|
||||
|
||||
// Install the @@toPrimitive function.
|
||||
InstallFunctionAtSymbol(
|
||||
isolate_, prototype, factory->to_primitive_symbol(),
|
||||
@ -4248,18 +4253,6 @@ void Genesis::InitializeGlobal_harmony_sharedarraybuffer() {
|
||||
InstallToStringTag(isolate_, isolate()->atomics_object(), "Atomics");
|
||||
}
|
||||
|
||||
void Genesis::InitializeGlobal_harmony_symbol_description() {
|
||||
if (!FLAG_harmony_symbol_description) return;
|
||||
|
||||
// Symbol.prototype.description
|
||||
Handle<JSFunction> symbol_fun(native_context()->symbol_function(), isolate());
|
||||
Handle<JSObject> symbol_prototype(
|
||||
JSObject::cast(symbol_fun->instance_prototype()), isolate());
|
||||
SimpleInstallGetter(isolate(), symbol_prototype,
|
||||
factory()->InternalizeUtf8String("description"),
|
||||
Builtins::kSymbolPrototypeDescriptionGetter, true);
|
||||
}
|
||||
|
||||
void Genesis::InitializeGlobal_harmony_string_matchall() {
|
||||
if (!FLAG_harmony_string_matchall) return;
|
||||
|
||||
|
@ -10,8 +10,8 @@ namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// ES6 #sec-symbol-objects
|
||||
// ES ##sec-symbol.prototype.description
|
||||
// ES #sec-symbol-objects
|
||||
// ES #sec-symbol.prototype.description
|
||||
TF_BUILTIN(SymbolPrototypeDescriptionGetter, CodeStubAssembler) {
|
||||
Node* context = Parameter(Descriptor::kContext);
|
||||
Node* receiver = Parameter(Descriptor::kReceiver);
|
||||
|
@ -234,7 +234,6 @@ DEFINE_IMPLICATION(harmony_private_methods, harmony_private_fields)
|
||||
V(harmony_sharedarraybuffer, "harmony sharedarraybuffer") \
|
||||
V(harmony_import_meta, "harmony import.meta property") \
|
||||
V(harmony_dynamic_import, "harmony dynamic import") \
|
||||
V(harmony_symbol_description, "harmony Symbol.prototype.description") \
|
||||
V(harmony_global, "harmony global") \
|
||||
V(harmony_json_stringify, "well-formed JSON.stringify") \
|
||||
V(harmony_public_fields, "harmony public instance fields in class literals") \
|
||||
|
@ -2,8 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Flags: --harmony-symbol-description
|
||||
|
||||
{
|
||||
let desc = Object.getOwnPropertyDescriptor(Symbol.prototype, 'description');
|
||||
assertEquals(desc.set, undefined);
|
||||
|
@ -16,7 +16,7 @@
|
||||
namespace v8 {
|
||||
|
||||
static const char* kHeader =
|
||||
"# Copyright 2018 the V8 project authors. All rights reserved.\n"
|
||||
"# Copyright 2019 the V8 project authors. All rights reserved.\n"
|
||||
"# Use of this source code is governed by a BSD-style license that can\n"
|
||||
"# be found in the LICENSE file.\n"
|
||||
"\n"
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 2018 the V8 project authors. All rights reserved.
|
||||
# Copyright 2019 the V8 project authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can
|
||||
# be found in the LICENSE file.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user