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

Side by Side Diff: src/bootstrapper.cc

Issue 1240223002: Fix installing of SIMD object on global object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months 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 | « no previous file | no next file » | 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 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698