OLD | NEW |
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 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2200 SimpleInstallFunction(reflect, "getOwnPropertyDescriptor", | 2200 SimpleInstallFunction(reflect, "getOwnPropertyDescriptor", |
2201 Builtins::kReflectGetOwnPropertyDescriptor, 2, true); | 2201 Builtins::kReflectGetOwnPropertyDescriptor, 2, true); |
2202 SimpleInstallFunction(reflect, "getPrototypeOf", | 2202 SimpleInstallFunction(reflect, "getPrototypeOf", |
2203 Builtins::kReflectGetPrototypeOf, 1, true); | 2203 Builtins::kReflectGetPrototypeOf, 1, true); |
2204 SimpleInstallFunction(reflect, "has", | 2204 SimpleInstallFunction(reflect, "has", |
2205 Builtins::kReflectHas, 2, true); | 2205 Builtins::kReflectHas, 2, true); |
2206 SimpleInstallFunction(reflect, "isExtensible", | 2206 SimpleInstallFunction(reflect, "isExtensible", |
2207 Builtins::kReflectIsExtensible, 1, true); | 2207 Builtins::kReflectIsExtensible, 1, true); |
2208 SimpleInstallFunction(reflect, "preventExtensions", | 2208 SimpleInstallFunction(reflect, "preventExtensions", |
2209 Builtins::kReflectPreventExtensions, 1, true); | 2209 Builtins::kReflectPreventExtensions, 1, true); |
| 2210 SimpleInstallFunction(reflect, "set", |
| 2211 Builtins::kReflectSet, 3, false); |
2210 SimpleInstallFunction(reflect, "setPrototypeOf", | 2212 SimpleInstallFunction(reflect, "setPrototypeOf", |
2211 Builtins::kReflectSetPrototypeOf, 2, true); | 2213 Builtins::kReflectSetPrototypeOf, 2, true); |
2212 } | 2214 } |
2213 | 2215 |
2214 | 2216 |
2215 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { | 2217 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { |
2216 if (!FLAG_harmony_sharedarraybuffer) return; | 2218 if (!FLAG_harmony_sharedarraybuffer) return; |
2217 | 2219 |
2218 Handle<JSGlobalObject> global( | 2220 Handle<JSGlobalObject> global( |
2219 JSGlobalObject::cast(native_context()->global_object())); | 2221 JSGlobalObject::cast(native_context()->global_object())); |
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3324 } | 3326 } |
3325 | 3327 |
3326 | 3328 |
3327 // Called when the top-level V8 mutex is destroyed. | 3329 // Called when the top-level V8 mutex is destroyed. |
3328 void Bootstrapper::FreeThreadResources() { | 3330 void Bootstrapper::FreeThreadResources() { |
3329 DCHECK(!IsActive()); | 3331 DCHECK(!IsActive()); |
3330 } | 3332 } |
3331 | 3333 |
3332 } // namespace internal | 3334 } // namespace internal |
3333 } // namespace v8 | 3335 } // namespace v8 |
OLD | NEW |