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 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2187 Handle<String> reflect_string = | 2187 Handle<String> reflect_string = |
2188 factory()->NewStringFromStaticChars("Reflect"); | 2188 factory()->NewStringFromStaticChars("Reflect"); |
2189 Handle<JSObject> reflect = | 2189 Handle<JSObject> reflect = |
2190 factory()->NewJSObject(isolate()->object_function(), TENURED); | 2190 factory()->NewJSObject(isolate()->object_function(), TENURED); |
2191 JSObject::AddProperty(global, reflect_string, reflect, DONT_ENUM); | 2191 JSObject::AddProperty(global, reflect_string, reflect, DONT_ENUM); |
2192 | 2192 |
2193 SimpleInstallFunction(reflect, "deleteProperty", | 2193 SimpleInstallFunction(reflect, "deleteProperty", |
2194 Builtins::kReflectDeleteProperty, 2, true); | 2194 Builtins::kReflectDeleteProperty, 2, true); |
2195 SimpleInstallFunction(reflect, "get", | 2195 SimpleInstallFunction(reflect, "get", |
2196 Builtins::kReflectGet, 3, false); | 2196 Builtins::kReflectGet, 3, false); |
| 2197 SimpleInstallFunction(reflect, "getPrototypeOf", |
| 2198 Builtins::kReflectGetPrototypeOf, 1, true); |
2197 SimpleInstallFunction(reflect, "has", | 2199 SimpleInstallFunction(reflect, "has", |
2198 Builtins::kReflectHas, 2, true); | 2200 Builtins::kReflectHas, 2, true); |
2199 SimpleInstallFunction(reflect, "isExtensible", | 2201 SimpleInstallFunction(reflect, "isExtensible", |
2200 Builtins::kReflectIsExtensible, 1, true); | 2202 Builtins::kReflectIsExtensible, 1, true); |
2201 SimpleInstallFunction(reflect, "preventExtensions", | 2203 SimpleInstallFunction(reflect, "preventExtensions", |
2202 Builtins::kReflectPreventExtensions, 1, true); | 2204 Builtins::kReflectPreventExtensions, 1, true); |
2203 } | 2205 } |
2204 | 2206 |
2205 | 2207 |
2206 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { | 2208 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3318 } | 3320 } |
3319 | 3321 |
3320 | 3322 |
3321 // Called when the top-level V8 mutex is destroyed. | 3323 // Called when the top-level V8 mutex is destroyed. |
3322 void Bootstrapper::FreeThreadResources() { | 3324 void Bootstrapper::FreeThreadResources() { |
3323 DCHECK(!IsActive()); | 3325 DCHECK(!IsActive()); |
3324 } | 3326 } |
3325 | 3327 |
3326 } // namespace internal | 3328 } // namespace internal |
3327 } // namespace v8 | 3329 } // namespace v8 |
OLD | NEW |