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

Side by Side Diff: src/bootstrapper.cc

Issue 1417243002: [es6] Partially implement Reflect.setPrototypeOf. (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 | « src/api-natives.cc ('k') | 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 2184 matching lines...) Expand 10 before | Expand all | Expand 10 after
2195 SimpleInstallFunction(reflect, "get", 2195 SimpleInstallFunction(reflect, "get",
2196 Builtins::kReflectGet, 3, false); 2196 Builtins::kReflectGet, 3, false);
2197 SimpleInstallFunction(reflect, "getPrototypeOf", 2197 SimpleInstallFunction(reflect, "getPrototypeOf",
2198 Builtins::kReflectGetPrototypeOf, 1, true); 2198 Builtins::kReflectGetPrototypeOf, 1, true);
2199 SimpleInstallFunction(reflect, "has", 2199 SimpleInstallFunction(reflect, "has",
2200 Builtins::kReflectHas, 2, true); 2200 Builtins::kReflectHas, 2, true);
2201 SimpleInstallFunction(reflect, "isExtensible", 2201 SimpleInstallFunction(reflect, "isExtensible",
2202 Builtins::kReflectIsExtensible, 1, true); 2202 Builtins::kReflectIsExtensible, 1, true);
2203 SimpleInstallFunction(reflect, "preventExtensions", 2203 SimpleInstallFunction(reflect, "preventExtensions",
2204 Builtins::kReflectPreventExtensions, 1, true); 2204 Builtins::kReflectPreventExtensions, 1, true);
2205 SimpleInstallFunction(reflect, "setPrototypeOf",
2206 Builtins::kReflectSetPrototypeOf, 2, true);
2205 } 2207 }
2206 2208
2207 2209
2208 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { 2210 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() {
2209 if (!FLAG_harmony_sharedarraybuffer) return; 2211 if (!FLAG_harmony_sharedarraybuffer) return;
2210 2212
2211 Handle<JSGlobalObject> global( 2213 Handle<JSGlobalObject> global(
2212 JSGlobalObject::cast(native_context()->global_object())); 2214 JSGlobalObject::cast(native_context()->global_object()));
2213 2215
2214 Handle<JSFunction> shared_array_buffer_fun = InstallFunction( 2216 Handle<JSFunction> shared_array_buffer_fun = InstallFunction(
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
3320 } 3322 }
3321 3323
3322 3324
3323 // Called when the top-level V8 mutex is destroyed. 3325 // Called when the top-level V8 mutex is destroyed.
3324 void Bootstrapper::FreeThreadResources() { 3326 void Bootstrapper::FreeThreadResources() {
3325 DCHECK(!IsActive()); 3327 DCHECK(!IsActive());
3326 } 3328 }
3327 3329
3328 } // namespace internal 3330 } // namespace internal
3329 } // namespace v8 3331 } // namespace v8
OLDNEW
« no previous file with comments | « src/api-natives.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698