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

Side by Side Diff: src/bootstrapper.cc

Issue 1273353003: [simd.js] Single SIMD128_VALUE_TYPE for all Simd128Values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow check failures. REBASE. Created 5 years, 4 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 | « src/arm64/lithium-codegen-arm64.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | 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 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 JSFunction::SetInstancePrototype( 1974 JSFunction::SetInstancePrototype(
1975 cons, 1975 cons,
1976 Handle<Object>(native_context()->initial_object_prototype(), isolate)); 1976 Handle<Object>(native_context()->initial_object_prototype(), isolate));
1977 cons->SetInstanceClassName(*name); 1977 cons->SetInstanceClassName(*name);
1978 Handle<JSObject> simd_object = factory->NewJSObject(cons, TENURED); 1978 Handle<JSObject> simd_object = factory->NewJSObject(cons, TENURED);
1979 DCHECK(simd_object->IsJSObject()); 1979 DCHECK(simd_object->IsJSObject());
1980 JSObject::AddProperty(global, name, simd_object, DONT_ENUM); 1980 JSObject::AddProperty(global, name, simd_object, DONT_ENUM);
1981 1981
1982 // Install SIMD type functions. Set the instance class names since 1982 // Install SIMD type functions. Set the instance class names since
1983 // InstallFunction only does this when we install on the GlobalObject. 1983 // InstallFunction only does this when we install on the GlobalObject.
1984 #define SIMD128_INSTALL_FUNCTION(name, type, lane_count, lane_type) \ 1984 #define SIMD128_INSTALL_FUNCTION(TYPE, Type, type, lane_count, lane_type) \
1985 Handle<JSFunction> type##_function = InstallFunction( \ 1985 Handle<JSFunction> type##_function = InstallFunction( \
1986 simd_object, #name, JS_VALUE_TYPE, JSValue::kSize, \ 1986 simd_object, #Type, JS_VALUE_TYPE, JSValue::kSize, \
1987 isolate->initial_object_prototype(), Builtins::kIllegal); \ 1987 isolate->initial_object_prototype(), Builtins::kIllegal); \
1988 native_context()->set_##type##_function(*type##_function); \ 1988 native_context()->set_##type##_function(*type##_function); \
1989 type##_function->SetInstanceClassName(*factory->name##_string()); 1989 type##_function->SetInstanceClassName(*factory->Type##_string());
1990
1991 SIMD128_TYPES(SIMD128_INSTALL_FUNCTION) 1990 SIMD128_TYPES(SIMD128_INSTALL_FUNCTION)
1991 #undef SIMD128_INSTALL_FUNCTION
1992 } 1992 }
1993 1993
1994 1994
1995 Handle<JSFunction> Genesis::InstallInternalArray(Handle<JSObject> target, 1995 Handle<JSFunction> Genesis::InstallInternalArray(Handle<JSObject> target,
1996 const char* name, 1996 const char* name,
1997 ElementsKind elements_kind) { 1997 ElementsKind elements_kind) {
1998 // --- I n t e r n a l A r r a y --- 1998 // --- I n t e r n a l A r r a y ---
1999 // An array constructor on the builtins object that works like 1999 // An array constructor on the builtins object that works like
2000 // the public Array constructor, except that its prototype 2000 // the public Array constructor, except that its prototype
2001 // doesn't inherit from Object.prototype. 2001 // doesn't inherit from Object.prototype.
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
3251 } 3251 }
3252 3252
3253 3253
3254 // Called when the top-level V8 mutex is destroyed. 3254 // Called when the top-level V8 mutex is destroyed.
3255 void Bootstrapper::FreeThreadResources() { 3255 void Bootstrapper::FreeThreadResources() {
3256 DCHECK(!IsActive()); 3256 DCHECK(!IsActive());
3257 } 3257 }
3258 3258
3259 } // namespace internal 3259 } // namespace internal
3260 } // namespace v8 3260 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698