| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 19d9a3f0be9936a97b6c1370a50a17efa65374dd..b0a6b5e81427e1588a89f1c269a2b1e90c78f98b 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -46,6 +46,7 @@
|
| #include "isolate-inl.h"
|
| #include "jsregexp.h"
|
| #include "json-parser.h"
|
| +#include "json-stringifier.h"
|
| #include "liveedit.h"
|
| #include "liveobjectlist-inl.h"
|
| #include "misc-intrinsics.h"
|
| @@ -5760,6 +5761,14 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_QuoteJSONStringArray) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_BasicJSONStringify) {
|
| + ASSERT(args.length() == 1);
|
| + HandleScope scope(isolate);
|
| + BasicJsonStringifier stringifier(isolate);
|
| + return stringifier.Stringify(Handle<Object>(args[0]));
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_StringParseInt) {
|
| NoHandleAllocation ha;
|
|
|
|
|