Remove wrong uses of InternalPackedArray.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 15 Feb 2013 16:21:03 +0000 (16:21 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 15 Feb 2013 16:21:03 +0000 (16:21 +0000)
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

src/json.js
src/messages.js
src/v8natives.js

index 7818d9b..9ab1a31 100644 (file)
@@ -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++) {
index 0d9c90d..4a8143e 100644 (file)
@@ -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];
index f92c949..3978e88 100644 (file)
@@ -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]]));
   }