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

Side by Side Diff: src/bootstrapper.cc

Issue 1408163005: [es6] Partially implement Reflect.getOwnPropertyDescriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | src/builtins.h » ('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/base/utils/random-number-generator.h" 9 #include "src/base/utils/random-number-generator.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2190 Handle<JSObject> reflect = 2190 Handle<JSObject> reflect =
2191 factory()->NewJSObject(isolate()->object_function(), TENURED); 2191 factory()->NewJSObject(isolate()->object_function(), TENURED);
2192 JSObject::AddProperty(global, reflect_string, reflect, DONT_ENUM); 2192 JSObject::AddProperty(global, reflect_string, reflect, DONT_ENUM);
2193 2193
2194 SimpleInstallFunction(reflect, "defineProperty", 2194 SimpleInstallFunction(reflect, "defineProperty",
2195 Builtins::kReflectDefineProperty, 3, true); 2195 Builtins::kReflectDefineProperty, 3, true);
2196 SimpleInstallFunction(reflect, "deleteProperty", 2196 SimpleInstallFunction(reflect, "deleteProperty",
2197 Builtins::kReflectDeleteProperty, 2, true); 2197 Builtins::kReflectDeleteProperty, 2, true);
2198 SimpleInstallFunction(reflect, "get", 2198 SimpleInstallFunction(reflect, "get",
2199 Builtins::kReflectGet, 3, false); 2199 Builtins::kReflectGet, 3, false);
2200 SimpleInstallFunction(reflect, "getOwnPropertyDescriptor",
2201 Builtins::kReflectGetOwnPropertyDescriptor, 2, true);
2200 SimpleInstallFunction(reflect, "getPrototypeOf", 2202 SimpleInstallFunction(reflect, "getPrototypeOf",
2201 Builtins::kReflectGetPrototypeOf, 1, true); 2203 Builtins::kReflectGetPrototypeOf, 1, true);
2202 SimpleInstallFunction(reflect, "has", 2204 SimpleInstallFunction(reflect, "has",
2203 Builtins::kReflectHas, 2, true); 2205 Builtins::kReflectHas, 2, true);
2204 SimpleInstallFunction(reflect, "isExtensible", 2206 SimpleInstallFunction(reflect, "isExtensible",
2205 Builtins::kReflectIsExtensible, 1, true); 2207 Builtins::kReflectIsExtensible, 1, true);
2206 SimpleInstallFunction(reflect, "preventExtensions", 2208 SimpleInstallFunction(reflect, "preventExtensions",
2207 Builtins::kReflectPreventExtensions, 1, true); 2209 Builtins::kReflectPreventExtensions, 1, true);
2208 SimpleInstallFunction(reflect, "setPrototypeOf", 2210 SimpleInstallFunction(reflect, "setPrototypeOf",
2209 Builtins::kReflectSetPrototypeOf, 2, true); 2211 Builtins::kReflectSetPrototypeOf, 2, true);
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
3322 } 3324 }
3323 3325
3324 3326
3325 // Called when the top-level V8 mutex is destroyed. 3327 // Called when the top-level V8 mutex is destroyed.
3326 void Bootstrapper::FreeThreadResources() { 3328 void Bootstrapper::FreeThreadResources() {
3327 DCHECK(!IsActive()); 3329 DCHECK(!IsActive());
3328 } 3330 }
3329 3331
3330 } // namespace internal 3332 } // namespace internal
3331 } // namespace v8 3333 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698