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 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1918 JSObject::AddProperty(global, reflect_string, reflect, DONT_ENUM); | 1918 JSObject::AddProperty(global, reflect_string, reflect, DONT_ENUM); |
1919 | 1919 |
1920 SimpleInstallFunction(reflect, "deleteProperty", | 1920 SimpleInstallFunction(reflect, "deleteProperty", |
1921 Builtins::kReflectDeleteProperty, 2, true); | 1921 Builtins::kReflectDeleteProperty, 2, true); |
1922 SimpleInstallFunction(reflect, "get", | 1922 SimpleInstallFunction(reflect, "get", |
1923 Builtins::kReflectGet, 3, false); | 1923 Builtins::kReflectGet, 3, false); |
1924 SimpleInstallFunction(reflect, "has", | 1924 SimpleInstallFunction(reflect, "has", |
1925 Builtins::kReflectHas, 2, true); | 1925 Builtins::kReflectHas, 2, true); |
1926 SimpleInstallFunction(reflect, "isExtensible", | 1926 SimpleInstallFunction(reflect, "isExtensible", |
1927 Builtins::kReflectIsExtensible, 1, true); | 1927 Builtins::kReflectIsExtensible, 1, true); |
| 1928 SimpleInstallFunction(reflect, "preventExtensions", |
| 1929 Builtins::kReflectPreventExtensions, 1, true); |
1928 } | 1930 } |
1929 | 1931 |
1930 | 1932 |
1931 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { | 1933 void Genesis::InitializeGlobal_harmony_sharedarraybuffer() { |
1932 if (!FLAG_harmony_sharedarraybuffer) return; | 1934 if (!FLAG_harmony_sharedarraybuffer) return; |
1933 | 1935 |
1934 Handle<JSGlobalObject> global( | 1936 Handle<JSGlobalObject> global( |
1935 JSGlobalObject::cast(native_context()->global_object())); | 1937 JSGlobalObject::cast(native_context()->global_object())); |
1936 | 1938 |
1937 Handle<JSFunction> shared_array_buffer_fun = InstallFunction( | 1939 Handle<JSFunction> shared_array_buffer_fun = InstallFunction( |
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3304 } | 3306 } |
3305 | 3307 |
3306 | 3308 |
3307 // Called when the top-level V8 mutex is destroyed. | 3309 // Called when the top-level V8 mutex is destroyed. |
3308 void Bootstrapper::FreeThreadResources() { | 3310 void Bootstrapper::FreeThreadResources() { |
3309 DCHECK(!IsActive()); | 3311 DCHECK(!IsActive()); |
3310 } | 3312 } |
3311 | 3313 |
3312 } // namespace internal | 3314 } // namespace internal |
3313 } // namespace v8 | 3315 } // namespace v8 |
OLD | NEW |