Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: src/bootstrapper.cc

Issue 1721453002: Remove Reflect.enumerate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | src/js/harmony-reflect.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after
2413 Handle<JSGlobalObject> global(JSGlobalObject::cast( 2413 Handle<JSGlobalObject> global(JSGlobalObject::cast(
2414 native_context()->global_object())); 2414 native_context()->global_object()));
2415 Handle<String> reflect_string = factory->NewStringFromStaticChars("Reflect"); 2415 Handle<String> reflect_string = factory->NewStringFromStaticChars("Reflect");
2416 Handle<JSObject> reflect = 2416 Handle<JSObject> reflect =
2417 factory->NewJSObject(isolate()->object_function(), TENURED); 2417 factory->NewJSObject(isolate()->object_function(), TENURED);
2418 JSObject::AddProperty(global, reflect_string, reflect, DONT_ENUM); 2418 JSObject::AddProperty(global, reflect_string, reflect, DONT_ENUM);
2419 2419
2420 InstallFunction(reflect, define_property, factory->defineProperty_string()); 2420 InstallFunction(reflect, define_property, factory->defineProperty_string());
2421 InstallFunction(reflect, delete_property, factory->deleteProperty_string()); 2421 InstallFunction(reflect, delete_property, factory->deleteProperty_string());
2422 2422
2423 SimpleInstallFunction(reflect, factory->apply_string(),
adamk 2016/02/20 00:06:14 Hmm, seems like this is doing the same thing as th
Dan Ehrenberg 2016/02/20 00:12:28 The parser has desugarings into calls to reflect_a
adamk 2016/02/20 00:23:55 Take a look at how object_is_extensible is handled
Dan Ehrenberg 2016/02/20 00:58:55 Thanks for the reference; adopted that pattern. PT
2424 Builtins::kReflectApply, 3, false);
2425 SimpleInstallFunction(reflect, factory->construct_string(),
2426 Builtins::kReflectConstruct, 2, false);
2423 SimpleInstallFunction(reflect, factory->get_string(), 2427 SimpleInstallFunction(reflect, factory->get_string(),
2424 Builtins::kReflectGet, 2, false); 2428 Builtins::kReflectGet, 2, false);
2425 SimpleInstallFunction(reflect, factory->getOwnPropertyDescriptor_string(), 2429 SimpleInstallFunction(reflect, factory->getOwnPropertyDescriptor_string(),
2426 Builtins::kReflectGetOwnPropertyDescriptor, 2, true); 2430 Builtins::kReflectGetOwnPropertyDescriptor, 2, true);
2427 SimpleInstallFunction(reflect, factory->getPrototypeOf_string(), 2431 SimpleInstallFunction(reflect, factory->getPrototypeOf_string(),
2428 Builtins::kReflectGetPrototypeOf, 1, true); 2432 Builtins::kReflectGetPrototypeOf, 1, true);
2429 SimpleInstallFunction(reflect, factory->has_string(), 2433 SimpleInstallFunction(reflect, factory->has_string(),
2430 Builtins::kReflectHas, 2, true); 2434 Builtins::kReflectHas, 2, true);
2431 SimpleInstallFunction(reflect, factory->isExtensible_string(), 2435 SimpleInstallFunction(reflect, factory->isExtensible_string(),
2432 Builtins::kReflectIsExtensible, 1, true); 2436 Builtins::kReflectIsExtensible, 1, true);
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
3674 } 3678 }
3675 3679
3676 3680
3677 // Called when the top-level V8 mutex is destroyed. 3681 // Called when the top-level V8 mutex is destroyed.
3678 void Bootstrapper::FreeThreadResources() { 3682 void Bootstrapper::FreeThreadResources() {
3679 DCHECK(!IsActive()); 3683 DCHECK(!IsActive());
3680 } 3684 }
3681 3685
3682 } // namespace internal 3686 } // namespace internal
3683 } // namespace v8 3687 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/js/harmony-reflect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698