From: yangguo@chromium.org Date: Fri, 15 Feb 2013 16:21:03 +0000 (+0000) Subject: Remove wrong uses of InternalPackedArray. X-Git-Tag: upstream/4.7.83~15074 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7999dc42eb9225c98bc852665b7e645da9370eb;p=platform%2Fupstream%2Fv8.git Remove wrong uses of InternalPackedArray. R=jkummerow@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/12284002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13679 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/json.js b/src/json.js index 7818d9b..9ab1a31 100644 --- a/src/json.js +++ b/src/json.js @@ -67,7 +67,7 @@ function SerializeArray(value, replacer, stack, indent, gap) { } var stepback = indent; indent += gap; - var partial = new InternalPackedArray(); + var partial = new InternalArray(); var len = value.length; for (var i = 0; i < len; i++) { var strP = JSONSerialize($String(i), value, replacer, stack, @@ -97,7 +97,7 @@ function SerializeObject(value, replacer, stack, indent, gap) { } var stepback = indent; indent += gap; - var partial = new InternalPackedArray(); + var partial = new InternalArray(); if (IS_ARRAY(replacer)) { var length = replacer.length; for (var i = 0; i < length; i++) { diff --git a/src/messages.js b/src/messages.js index 0d9c90d..4a8143e 100644 --- a/src/messages.js +++ b/src/messages.js @@ -557,7 +557,7 @@ function ScriptNameOrSourceURL() { // Don't reuse lastMatchInfo here, so we create a new array with room // for four captures (array with length one longer than the index // of the fourth capture, where the numbering is zero-based). - var matchInfo = new InternalPackedArray(CAPTURE(3) + 1); + var matchInfo = new InternalArray(CAPTURE(3) + 1); var match = %_RegExpExec(sourceUrlPattern, source, sourceUrlPos - 4, matchInfo); if (match) { @@ -1033,7 +1033,7 @@ function FormatErrorString(error) { function GetStackFrames(raw_stack) { - var frames = new InternalPackedArray(); + var frames = new InternalArray(); for (var i = 0; i < raw_stack.length; i += 4) { var recv = raw_stack[i]; var fun = raw_stack[i + 1]; @@ -1047,7 +1047,7 @@ function GetStackFrames(raw_stack) { function FormatStackTrace(error_string, frames) { - var lines = new InternalPackedArray(); + var lines = new InternalArray(); lines.push(error_string); for (var i = 0; i < frames.length; i++) { var frame = frames[i]; diff --git a/src/v8natives.js b/src/v8natives.js index f92c949..3978e88 100644 --- a/src/v8natives.js +++ b/src/v8natives.js @@ -1117,7 +1117,7 @@ function ObjectDefineProperty(obj, p, attributes) { function GetOwnEnumerablePropertyNames(properties) { - var names = new InternalPackedArray(); + var names = new InternalArray(); for (var key in properties) { if (%HasLocalProperty(properties, key)) { names.push(key); @@ -1134,7 +1134,7 @@ function ObjectDefineProperties(obj, properties) { } var props = ToObject(properties); var names = GetOwnEnumerablePropertyNames(props); - var descriptors = new InternalPackedArray(); + var descriptors = new InternalArray(); for (var i = 0; i < names.length; i++) { descriptors.push(ToPropertyDescriptor(props[names[i]])); }