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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index e3932e5c008b883f7c4b5f9e9393cd05bcdc30fd..2f8af0104ac10cf85d14c3564fb65d72b875febd 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1979,6 +1979,39 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
SimpleInstallGetter(prototype, factory->byte_offset_string(),
Builtins::kDataViewPrototypeGetByteOffset, false,
kDataViewByteOffset);
+
+ SimpleInstallFunction(prototype, "getInt8",
+ Builtins::kDataViewPrototypeGetInt8, 1, false);
+ SimpleInstallFunction(prototype, "setInt8",
+ Builtins::kDataViewPrototypeSetInt8, 2, false);
+ SimpleInstallFunction(prototype, "getUint8",
+ Builtins::kDataViewPrototypeGetUint8, 1, false);
+ SimpleInstallFunction(prototype, "setUint8",
+ Builtins::kDataViewPrototypeSetUint8, 2, false);
+ SimpleInstallFunction(prototype, "getInt16",
+ Builtins::kDataViewPrototypeGetInt16, 1, false);
+ SimpleInstallFunction(prototype, "setInt16",
+ Builtins::kDataViewPrototypeSetInt16, 2, false);
+ SimpleInstallFunction(prototype, "getUint16",
+ Builtins::kDataViewPrototypeGetUint16, 1, false);
+ SimpleInstallFunction(prototype, "setUint16",
+ Builtins::kDataViewPrototypeSetUint16, 2, false);
+ SimpleInstallFunction(prototype, "getInt32",
+ Builtins::kDataViewPrototypeGetInt32, 1, false);
+ SimpleInstallFunction(prototype, "setInt32",
+ Builtins::kDataViewPrototypeSetInt32, 2, false);
+ SimpleInstallFunction(prototype, "getUint32",
+ Builtins::kDataViewPrototypeGetUint32, 1, false);
+ SimpleInstallFunction(prototype, "setUint32",
+ Builtins::kDataViewPrototypeSetUint32, 2, false);
+ SimpleInstallFunction(prototype, "getFloat32",
+ Builtins::kDataViewPrototypeGetFloat32, 1, false);
+ SimpleInstallFunction(prototype, "setFloat32",
+ Builtins::kDataViewPrototypeSetFloat32, 2, false);
+ SimpleInstallFunction(prototype, "getFloat64",
+ Builtins::kDataViewPrototypeGetFloat64, 1, false);
+ SimpleInstallFunction(prototype, "setFloat64",
+ Builtins::kDataViewPrototypeSetFloat64, 2, false);
}
{ // -- M a p
« 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