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

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 /**
Søren Thygesen Gjesse 2010/12/17 10:54:55 Please start the comment with something like this
marklam 2010/12/17 11:12:29 Will do. I do have one concern with not knowing w
1360 * Resets the Date cache for the current context so that date/time
1361 * changes due to daylight savings, or timezone changes would be
1362 * reflected in the Date object.
1363 */
1364 V8EXPORT static void ResetCache();
Søren Thygesen Gjesse 2010/12/17 10:54:55 I think the name ResetCache here is a bit to low-l
marklam 2010/12/17 11:12:29 The implementation is really a reset of all values
1365
1358 private: 1366 private:
1359 V8EXPORT static void CheckCast(v8::Value* obj); 1367 V8EXPORT static void CheckCast(v8::Value* obj);
1360 }; 1368 };
1361 1369
1362 1370
1363 /** 1371 /**
1364 * An instance of the built-in RegExp constructor (ECMA-262, 15.10). 1372 * An instance of the built-in RegExp constructor (ECMA-262, 15.10).
1365 */ 1373 */
1366 class RegExp : public Value { 1374 class RegExp : public Value {
1367 public: 1375 public:
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
3767 3775
3768 3776
3769 } // namespace v8 3777 } // namespace v8
3770 3778
3771 3779
3772 #undef V8EXPORT 3780 #undef V8EXPORT
3773 #undef TYPE_CHECK 3781 #undef TYPE_CHECK
3774 3782
3775 3783
3776 #endif // V8_H_ 3784 #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