Revision: 19785
Author:   [email protected]
Date:     Tue Mar 11 09:35:24 2014 UTC
Log:      Fix compilation on win after r19784

[email protected]
BUG=

Review URL: https://codereview.chromium.org/194703002
http://code.google.com/p/v8/source/detail?r=19785

Modified:
 /branches/bleeding_edge/src/api.cc

=======================================
--- /branches/bleeding_edge/src/api.cc  Tue Mar 11 09:04:14 2014 UTC
+++ /branches/bleeding_edge/src/api.cc  Tue Mar 11 09:35:24 2014 UTC
@@ -5626,9 +5626,10 @@
i::Handle<i::FixedArray>::cast(i_isolate->eternal_handles()->GetSingleton(
           i::EternalHandles::DATE_CACHE_VERSION));
   ASSERT_EQ(1, date_cache_version->length());
-  ASSERT(date_cache_version->get(0)->IsNumber());
-  date_cache_version->set(0, i::Smi::FromInt(
- date_cache_version->get(0)->Number() + 1));
+  CHECK(date_cache_version->get(0)->IsSmi());
+  date_cache_version->set(
+      0,
+ i::Smi::FromInt(i::Smi::cast(date_cache_version->get(0))->value() + 1));
 }


--
--
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/d/optout.

Reply via email to