Revision: 16583
Author:   [email protected]
Date:     Mon Sep  9 05:44:54 2013 UTC
Log: Replace uses of MUST_USE_RESULT by V8_WARN_UNUSED_RESULT in ElapsedTimer.

[email protected]
Signed-off-by: Thiago Farina <[email protected]>

Review URL: https://codereview.chromium.org/23523034

Patch from Thiago Farina <[email protected]>.
http://code.google.com/p/v8/source/detail?r=16583

Modified:
 /branches/bleeding_edge/src/platform/elapsed-timer.h

=======================================
--- /branches/bleeding_edge/src/platform/elapsed-timer.h Thu Aug 29 09:15:13 2013 UTC +++ /branches/bleeding_edge/src/platform/elapsed-timer.h Mon Sep 9 05:44:54 2013 UTC
@@ -87,7 +87,7 @@

// Returns the time elapsed since the previous start. This method may only
   // be called on a previously started timer.
-  MUST_USE_RESULT TimeDelta Elapsed() const {
+  TimeDelta Elapsed() const V8_WARN_UNUSED_RESULT {
     ASSERT(IsStarted());
     TimeDelta elapsed = Now() - start_ticks_;
     ASSERT(elapsed.InMicroseconds() >= 0);
@@ -97,13 +97,13 @@
   // Returns |true| if the specified |time_delta| has elapsed since the
   // previous start, or |false| if not. This method may only be called on
   // a previously started timer.
-  MUST_USE_RESULT bool HasExpired(TimeDelta time_delta) const {
+  bool HasExpired(TimeDelta time_delta) const V8_WARN_UNUSED_RESULT {
     ASSERT(IsStarted());
     return Elapsed() >= time_delta;
   }

  private:
-  MUST_USE_RESULT V8_INLINE(static TimeTicks Now()) {
+  V8_INLINE(static TimeTicks Now()) V8_WARN_UNUSED_RESULT {
     TimeTicks now = TimeTicks::HighResNow();
     ASSERT(!now.IsNull());
     return now;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to