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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 bool IsEval() const; | 1247 bool IsEval() const; |
1248 | 1248 |
1249 /** | 1249 /** |
1250 * Returns whether or not the associated function is called as a | 1250 * Returns whether or not the associated function is called as a |
1251 * constructor via "new". | 1251 * constructor via "new". |
1252 */ | 1252 */ |
1253 bool IsConstructor() const; | 1253 bool IsConstructor() const; |
1254 }; | 1254 }; |
1255 | 1255 |
1256 | 1256 |
| 1257 /** |
| 1258 * A JSON Parser. |
| 1259 */ |
| 1260 class V8EXPORT JSON { |
| 1261 public: |
| 1262 /** |
| 1263 * Tries to parse the string |json_string| and returns it as object if |
| 1264 * successful. |
| 1265 * |
| 1266 * \param json_string The string to parse. |
| 1267 * \return The corresponding object if successfully parsed. |
| 1268 */ |
| 1269 static Local<Object> Parse(Local<String> json_string); |
| 1270 }; |
| 1271 |
| 1272 |
1257 // --- Value --- | 1273 // --- Value --- |
1258 | 1274 |
1259 | 1275 |
1260 /** | 1276 /** |
1261 * The superclass of all JavaScript values and objects. | 1277 * The superclass of all JavaScript values and objects. |
1262 */ | 1278 */ |
1263 class V8EXPORT Value : public Data { | 1279 class V8EXPORT Value : public Data { |
1264 public: | 1280 public: |
1265 /** | 1281 /** |
1266 * Returns true if this value is the undefined value. See ECMA-262 | 1282 * Returns true if this value is the undefined value. See ECMA-262 |
(...skipping 5273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6540 | 6556 |
6541 | 6557 |
6542 } // namespace v8 | 6558 } // namespace v8 |
6543 | 6559 |
6544 | 6560 |
6545 #undef V8EXPORT | 6561 #undef V8EXPORT |
6546 #undef TYPE_CHECK | 6562 #undef TYPE_CHECK |
6547 | 6563 |
6548 | 6564 |
6549 #endif // V8_H_ | 6565 #endif // V8_H_ |
OLD | NEW |