Initialize typed array content for rempio2result during bootstrapping.
This is to pacify MSAN. R=mvstanton@chromium.org BUG=465759 LOG=N Review URL: https://codereview.chromium.org/1119693004 Cr-Commit-Position: refs/heads/master@{#28170}
This commit is contained in:
parent
7ce30d027f
commit
dfe01818fe
@ -1645,8 +1645,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user