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 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1980 | 1980 |
1981 Handle<JSFunction> shared_array_buffer_fun = InstallFunction( | 1981 Handle<JSFunction> shared_array_buffer_fun = InstallFunction( |
1982 global, "SharedArrayBuffer", JS_ARRAY_BUFFER_TYPE, | 1982 global, "SharedArrayBuffer", JS_ARRAY_BUFFER_TYPE, |
1983 JSArrayBuffer::kSizeWithInternalFields, | 1983 JSArrayBuffer::kSizeWithInternalFields, |
1984 isolate()->initial_object_prototype(), Builtins::kIllegal); | 1984 isolate()->initial_object_prototype(), Builtins::kIllegal); |
1985 native_context()->set_shared_array_buffer_fun(*shared_array_buffer_fun); | 1985 native_context()->set_shared_array_buffer_fun(*shared_array_buffer_fun); |
1986 } | 1986 } |
1987 | 1987 |
1988 | 1988 |
1989 void Genesis::InitializeGlobal_harmony_simd() { | 1989 void Genesis::InitializeGlobal_harmony_simd() { |
| 1990 if (!FLAG_harmony_simd) return; |
| 1991 |
1990 Handle<JSGlobalObject> global( | 1992 Handle<JSGlobalObject> global( |
1991 JSGlobalObject::cast(native_context()->global_object())); | 1993 JSGlobalObject::cast(native_context()->global_object())); |
1992 Isolate* isolate = global->GetIsolate(); | 1994 Isolate* isolate = global->GetIsolate(); |
1993 Factory* factory = isolate->factory(); | 1995 Factory* factory = isolate->factory(); |
1994 | 1996 |
1995 Handle<String> name = factory->InternalizeUtf8String("SIMD"); | 1997 Handle<String> name = factory->InternalizeUtf8String("SIMD"); |
1996 Handle<JSFunction> cons = factory->NewFunction(name); | 1998 Handle<JSFunction> cons = factory->NewFunction(name); |
1997 JSFunction::SetInstancePrototype( | 1999 JSFunction::SetInstancePrototype( |
1998 cons, | 2000 cons, |
1999 Handle<Object>(native_context()->initial_object_prototype(), isolate)); | 2001 Handle<Object>(native_context()->initial_object_prototype(), isolate)); |
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3314 } | 3316 } |
3315 | 3317 |
3316 | 3318 |
3317 // Called when the top-level V8 mutex is destroyed. | 3319 // Called when the top-level V8 mutex is destroyed. |
3318 void Bootstrapper::FreeThreadResources() { | 3320 void Bootstrapper::FreeThreadResources() { |
3319 DCHECK(!IsActive()); | 3321 DCHECK(!IsActive()); |
3320 } | 3322 } |
3321 | 3323 |
3322 } // namespace internal | 3324 } // namespace internal |
3323 } // namespace v8 | 3325 } // namespace v8 |
OLD | NEW |