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

Side by Side Diff: include/v8.h

Issue 5978001: Adding Date::ResetCache() API so that the cache values in the Date object... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698