| OLD | NEW |
| 1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2009 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 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1348 public: | 1348 public: |
| 1349 V8EXPORT static Local<Value> New(double time); | 1349 V8EXPORT static Local<Value> New(double time); |
| 1350 | 1350 |
| 1351 /** | 1351 /** |
| 1352 * A specialization of Value::NumberValue that is more efficient | 1352 * A specialization of Value::NumberValue that is more efficient |
| 1353 * because we know the structure of this object. | 1353 * because we know the structure of this object. |
| 1354 */ | 1354 */ |
| 1355 V8EXPORT double NumberValue() const; | 1355 V8EXPORT double NumberValue() const; |
| 1356 | 1356 |
| 1357 static inline Date* Cast(v8::Value* obj); | 1357 static inline Date* Cast(v8::Value* obj); |
| 1358 |
| 1359 /** |
| 1360 * Notification that the embedder has changed the time zone, |
| 1361 * daylight savings time, or other date / time configuration |
| 1362 * parameters. V8 keeps a cache of various values used for |
| 1363 * date / time computation. This notification will reset |
| 1364 * those cached values for the current context so that date / |
| 1365 * time configuration changes would be reflected in the Date |
| 1366 * object. |
| 1367 * |
| 1368 * This API should not be called more than needed as it will |
| 1369 * negatively impact the performance of date operations. |
| 1370 */ |
| 1371 V8EXPORT static void DateTimeConfigurationChangeNotification(); |
| 1372 |
| 1358 private: | 1373 private: |
| 1359 V8EXPORT static void CheckCast(v8::Value* obj); | 1374 V8EXPORT static void CheckCast(v8::Value* obj); |
| 1360 }; | 1375 }; |
| 1361 | 1376 |
| 1362 | 1377 |
| 1363 /** | 1378 /** |
| 1364 * An instance of the built-in RegExp constructor (ECMA-262, 15.10). | 1379 * An instance of the built-in RegExp constructor (ECMA-262, 15.10). |
| 1365 */ | 1380 */ |
| 1366 class RegExp : public Value { | 1381 class RegExp : public Value { |
| 1367 public: | 1382 public: |
| (...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3767 | 3782 |
| 3768 | 3783 |
| 3769 } // namespace v8 | 3784 } // namespace v8 |
| 3770 | 3785 |
| 3771 | 3786 |
| 3772 #undef V8EXPORT | 3787 #undef V8EXPORT |
| 3773 #undef TYPE_CHECK | 3788 #undef TYPE_CHECK |
| 3774 | 3789 |
| 3775 | 3790 |
| 3776 #endif // V8_H_ | 3791 #endif // V8_H_ |
| OLD | NEW |