From: dslomov@chromium.org Date: Thu, 27 Mar 2014 17:40:52 +0000 (+0000) Subject: Add Bogus initialization for external_elements_kind and fixed_elements_kind X-Git-Tag: upstream/4.7.83~9960 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9776ae1610cc191c12a1eb81656334336bd5376a;p=platform%2Fupstream%2Fv8.git Add Bogus initialization for external_elements_kind and fixed_elements_kind R=dslomov@chromium.org Review URL: https://codereview.chromium.org/212553008 Patch from Haitao Feng . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20315 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/runtime.cc b/src/runtime.cc index 8f4c4ca..5142fd3 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -966,8 +966,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayInitialize) { ExternalArrayType array_type = kExternalInt8Array; // Bogus initialization. size_t element_size = 1; // Bogus initialization. - ElementsKind external_elements_kind = EXTERNAL_INT8_ELEMENTS; - ElementsKind fixed_elements_kind = INT8_ELEMENTS; + ElementsKind external_elements_kind = + EXTERNAL_INT8_ELEMENTS; // Bogus initialization. + ElementsKind fixed_elements_kind = INT8_ELEMENTS; // Bogus initialization. Runtime::ArrayIdToTypeAndSize(arrayId, &array_type, &external_elements_kind, @@ -1044,8 +1045,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_TypedArrayInitializeFromArrayLike) { ExternalArrayType array_type = kExternalInt8Array; // Bogus initialization. size_t element_size = 1; // Bogus initialization. - ElementsKind external_elements_kind; - ElementsKind fixed_elements_kind; + ElementsKind external_elements_kind = + EXTERNAL_INT8_ELEMENTS; // Bogus intialization. + ElementsKind fixed_elements_kind = INT8_ELEMENTS; // Bogus initialization. Runtime::ArrayIdToTypeAndSize(arrayId, &array_type, &external_elements_kind,