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

Unified Diff: src/bootstrapper.cc

Issue 1119693004: Initialize typed array content for rempio2result during bootstrapping. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: . Created 5 years, 8 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 | no next file » | 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 2c5e9a82a88fe575730ded75b7d1df4284b461f7..5af9d86a3f19f413a0318718a769737d6898d1c7 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1644,8 +1644,10 @@ void Genesis::InitializeBuiltinTypedArrays() {
{ // Initialize a result array for rempio2 calculation
const size_t num_elements = 2;
- SetBuiltinTypedArray<double>(isolate(), builtins, kExternalFloat64Array,
- NULL, num_elements, "rempio2result");
+ double* data =
+ SetBuiltinTypedArray<double>(isolate(), builtins, kExternalFloat64Array,
+ NULL, num_elements, "rempio2result");
+ for (size_t i = 0; i < num_elements; i++) data[i] = 0;
}
}
« 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