OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 bool IsConstructor() const; | 1253 bool IsConstructor() const; |
1254 }; | 1254 }; |
1255 | 1255 |
1256 | 1256 |
1257 /** | 1257 /** |
1258 * A JSON Parser. | 1258 * A JSON Parser. |
1259 */ | 1259 */ |
1260 class V8EXPORT JSON { | 1260 class V8EXPORT JSON { |
1261 public: | 1261 public: |
1262 /** | 1262 /** |
1263 * Tries to parse the string |json_string| and returns it as object if | 1263 * Tries to parse the string |json_string| and returns it as value if |
1264 * successful. | 1264 * successful. |
1265 * | 1265 * |
1266 * \param json_string The string to parse. | 1266 * \param json_string The string to parse. |
1267 * \return The corresponding object if successfully parsed. | 1267 * \return The corresponding value if successfully parsed. |
1268 */ | 1268 */ |
1269 static Local<Object> Parse(Local<String> json_string); | 1269 static Local<Value> Parse(Local<String> json_string); |
1270 }; | 1270 }; |
1271 | 1271 |
1272 | 1272 |
1273 // --- Value --- | 1273 // --- Value --- |
1274 | 1274 |
1275 | 1275 |
1276 /** | 1276 /** |
1277 * The superclass of all JavaScript values and objects. | 1277 * The superclass of all JavaScript values and objects. |
1278 */ | 1278 */ |
1279 class V8EXPORT Value : public Data { | 1279 class V8EXPORT Value : public Data { |
(...skipping 5276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6556 | 6556 |
6557 | 6557 |
6558 } // namespace v8 | 6558 } // namespace v8 |
6559 | 6559 |
6560 | 6560 |
6561 #undef V8EXPORT | 6561 #undef V8EXPORT |
6562 #undef TYPE_CHECK | 6562 #undef TYPE_CHECK |
6563 | 6563 |
6564 | 6564 |
6565 #endif // V8_H_ | 6565 #endif // V8_H_ |
OLD | NEW |