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

Side by Side Diff: src/runtime/runtime.h

Issue 1847823004: Expose JSON stringifier through V8 API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Compile Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/platform/time.h" 9 #include "src/base/platform/time.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, 1104 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key,
1105 LanguageMode language_mode); 1105 LanguageMode language_mode);
1106 1106
1107 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( 1107 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty(
1108 Isolate* isolate, Handle<Object> object, Handle<Object> key, 1108 Isolate* isolate, Handle<Object> object, Handle<Object> key,
1109 Handle<Object> value, LanguageMode language_mode); 1109 Handle<Object> value, LanguageMode language_mode);
1110 1110
1111 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( 1111 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty(
1112 Isolate* isolate, Handle<Object> object, Handle<Object> key); 1112 Isolate* isolate, Handle<Object> object, Handle<Object> key);
1113 1113
1114 MUST_USE_RESULT static MaybeHandle<Object> BasicJsonStringify(
1115 Isolate* isolate, Handle<Object> object);
1116
1117 MUST_USE_RESULT static MaybeHandle<Object> BasicJsonStringifyString(
1118 Isolate* isolate, Handle<String> string);
1119
1114 enum TypedArrayId { 1120 enum TypedArrayId {
1115 // arrayIds below should be synchronized with typedarray.js natives. 1121 // arrayIds below should be synchronized with typedarray.js natives.
1116 ARRAY_ID_UINT8 = 1, 1122 ARRAY_ID_UINT8 = 1,
1117 ARRAY_ID_INT8 = 2, 1123 ARRAY_ID_INT8 = 2,
1118 ARRAY_ID_UINT16 = 3, 1124 ARRAY_ID_UINT16 = 3,
1119 ARRAY_ID_INT16 = 4, 1125 ARRAY_ID_INT16 = 4,
1120 ARRAY_ID_UINT32 = 5, 1126 ARRAY_ID_UINT32 = 5,
1121 ARRAY_ID_INT32 = 6, 1127 ARRAY_ID_INT32 = 6,
1122 ARRAY_ID_FLOAT32 = 7, 1128 ARRAY_ID_FLOAT32 = 7,
1123 ARRAY_ID_FLOAT64 = 8, 1129 ARRAY_ID_FLOAT64 = 8,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 1189
1184 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1190 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1185 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1191 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1186 STATIC_ASSERT(LANGUAGE_END == 3); 1192 STATIC_ASSERT(LANGUAGE_END == 3);
1187 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1193 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1188 1194
1189 } // namespace internal 1195 } // namespace internal
1190 } // namespace v8 1196 } // namespace v8
1191 1197
1192 #endif // V8_RUNTIME_RUNTIME_H_ 1198 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« include/v8.h ('K') | « src/api.cc ('k') | src/runtime/runtime-json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698