Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: src/json.js

Issue 12255049: Introduce InternalPackedArray. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/messages.js » ('j') | src/messages.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json.js
diff --git a/src/json.js b/src/json.js
index 9ab1a31e59c1b0b25226160402b7ef9bfd804454..7818d9b14ab6466835a84845d6ac8fc154a03140 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 InternalArray();
+ var partial = new InternalPackedArray();
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 InternalArray();
+ var partial = new InternalPackedArray();
if (IS_ARRAY(replacer)) {
var length = replacer.length;
for (var i = 0; i < length; i++) {
« no previous file with comments | « src/bootstrapper.cc ('k') | src/messages.js » ('j') | src/messages.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698