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
This commit is contained in:
yangguo@chromium.org 2013-02-15 16:21:03 +00:00
parent 01f4cb0951
commit d7999dc42e
3 changed files with 7 additions and 7 deletions

View 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++) {

View 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];

View 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]]));
}