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

Unified Diff: src/json-stringifier.h

Issue 2004413002: [json] support property list argument in BasicJsonStringifier. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 7 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/js/json.js ('k') | src/json-stringifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json-stringifier.h
diff --git a/src/json-stringifier.h b/src/json-stringifier.h
index 36697828745fc1f31ec7228fb245d570eaa0cea6..ffde4dca6b10d8df1116373e66ad62edcd59100e 100644
--- a/src/json-stringifier.h
+++ b/src/json-stringifier.h
@@ -18,6 +18,7 @@ class BasicJsonStringifier BASE_EMBEDDED {
~BasicJsonStringifier() { DeleteArray(gap_); }
MUST_USE_RESULT MaybeHandle<Object> Stringify(Handle<Object> object,
+ Handle<Object> replacer,
Handle<Object> gap);
MUST_USE_RESULT static MaybeHandle<Object> StringifyString(
@@ -26,6 +27,7 @@ class BasicJsonStringifier BASE_EMBEDDED {
private:
enum Result { UNCHANGED, SUCCESS, EXCEPTION };
+ bool InitializeReplacer(Handle<Object> replacer);
bool InitializeGap(Handle<Object> gap);
MUST_USE_RESULT MaybeHandle<Object> ApplyToJsonFunction(
@@ -107,6 +109,7 @@ class BasicJsonStringifier BASE_EMBEDDED {
IncrementalStringBuilder builder_;
Handle<String> tojson_string_;
Handle<JSArray> stack_;
+ Handle<FixedArray> property_list_;
uc16* gap_;
int indent_;
« no previous file with comments | « src/js/json.js ('k') | src/json-stringifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698