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

Side by Side Diff: src/bootstrapper.cc

Issue 2306033002: [turbofan] Migrate remaining DataView builtins to C++. (Closed)
Patch Set: Created 4 years, 3 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 | src/builtins/builtins.h » ('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/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1972 // on the {prototype}. 1972 // on the {prototype}.
1973 SimpleInstallGetter(prototype, factory->buffer_string(), 1973 SimpleInstallGetter(prototype, factory->buffer_string(),
1974 Builtins::kDataViewPrototypeGetBuffer, false, 1974 Builtins::kDataViewPrototypeGetBuffer, false,
1975 kDataViewBuffer); 1975 kDataViewBuffer);
1976 SimpleInstallGetter(prototype, factory->byte_length_string(), 1976 SimpleInstallGetter(prototype, factory->byte_length_string(),
1977 Builtins::kDataViewPrototypeGetByteLength, false, 1977 Builtins::kDataViewPrototypeGetByteLength, false,
1978 kDataViewByteLength); 1978 kDataViewByteLength);
1979 SimpleInstallGetter(prototype, factory->byte_offset_string(), 1979 SimpleInstallGetter(prototype, factory->byte_offset_string(),
1980 Builtins::kDataViewPrototypeGetByteOffset, false, 1980 Builtins::kDataViewPrototypeGetByteOffset, false,
1981 kDataViewByteOffset); 1981 kDataViewByteOffset);
1982
1983 SimpleInstallFunction(prototype, "getInt8",
1984 Builtins::kDataViewPrototypeGetInt8, 1, false);
1985 SimpleInstallFunction(prototype, "setInt8",
1986 Builtins::kDataViewPrototypeSetInt8, 2, false);
1987 SimpleInstallFunction(prototype, "getUint8",
1988 Builtins::kDataViewPrototypeGetUint8, 1, false);
1989 SimpleInstallFunction(prototype, "setUint8",
1990 Builtins::kDataViewPrototypeSetUint8, 2, false);
1991 SimpleInstallFunction(prototype, "getInt16",
1992 Builtins::kDataViewPrototypeGetInt16, 1, false);
1993 SimpleInstallFunction(prototype, "setInt16",
1994 Builtins::kDataViewPrototypeSetInt16, 2, false);
1995 SimpleInstallFunction(prototype, "getUint16",
1996 Builtins::kDataViewPrototypeGetUint16, 1, false);
1997 SimpleInstallFunction(prototype, "setUint16",
1998 Builtins::kDataViewPrototypeSetUint16, 2, false);
1999 SimpleInstallFunction(prototype, "getInt32",
2000 Builtins::kDataViewPrototypeGetInt32, 1, false);
2001 SimpleInstallFunction(prototype, "setInt32",
2002 Builtins::kDataViewPrototypeSetInt32, 2, false);
2003 SimpleInstallFunction(prototype, "getUint32",
2004 Builtins::kDataViewPrototypeGetUint32, 1, false);
2005 SimpleInstallFunction(prototype, "setUint32",
2006 Builtins::kDataViewPrototypeSetUint32, 2, false);
2007 SimpleInstallFunction(prototype, "getFloat32",
2008 Builtins::kDataViewPrototypeGetFloat32, 1, false);
2009 SimpleInstallFunction(prototype, "setFloat32",
2010 Builtins::kDataViewPrototypeSetFloat32, 2, false);
2011 SimpleInstallFunction(prototype, "getFloat64",
2012 Builtins::kDataViewPrototypeGetFloat64, 1, false);
2013 SimpleInstallFunction(prototype, "setFloat64",
2014 Builtins::kDataViewPrototypeSetFloat64, 2, false);
1982 } 2015 }
1983 2016
1984 { // -- M a p 2017 { // -- M a p
1985 Handle<JSFunction> js_map_fun = InstallFunction( 2018 Handle<JSFunction> js_map_fun = InstallFunction(
1986 global, "Map", JS_MAP_TYPE, JSMap::kSize, 2019 global, "Map", JS_MAP_TYPE, JSMap::kSize,
1987 isolate->initial_object_prototype(), Builtins::kIllegal); 2020 isolate->initial_object_prototype(), Builtins::kIllegal);
1988 InstallWithIntrinsicDefaultProto(isolate, js_map_fun, 2021 InstallWithIntrinsicDefaultProto(isolate, js_map_fun,
1989 Context::JS_MAP_FUN_INDEX); 2022 Context::JS_MAP_FUN_INDEX);
1990 } 2023 }
1991 2024
(...skipping 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after
4232 } 4265 }
4233 4266
4234 4267
4235 // Called when the top-level V8 mutex is destroyed. 4268 // Called when the top-level V8 mutex is destroyed.
4236 void Bootstrapper::FreeThreadResources() { 4269 void Bootstrapper::FreeThreadResources() {
4237 DCHECK(!IsActive()); 4270 DCHECK(!IsActive());
4238 } 4271 }
4239 4272
4240 } // namespace internal 4273 } // namespace internal
4241 } // namespace v8 4274 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698