Fix compilation after r24639
authorsigurds@chromium.org <sigurds@chromium.org>
Wed, 15 Oct 2014 14:42:32 +0000 (14:42 +0000)
committersigurds@chromium.org <sigurds@chromium.org>
Wed, 15 Oct 2014 14:42:32 +0000 (14:42 +0000)
TBR=yangguo@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24643 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/serialize.h
test/cctest/test-serialize.cc

index 6e1f651..482bc34 100644 (file)
@@ -263,7 +263,8 @@ class Deserializer: public SerializerDeserializer {
   void AddReservation(int space, uint32_t chunk) {
     DCHECK(space >= 0);
     DCHECK(space < kNumberOfSpaces);
-    DCHECK(space == LO_SPACE || chunk < Page::kMaxRegularHeapObjectSize);
+    DCHECK(space == LO_SPACE ||
+           chunk < static_cast<uint32_t>(Page::kMaxRegularHeapObjectSize));
     reservations_[space].Add({chunk, NULL, NULL});
   }
 
index 15c587b..48debe0 100644 (file)
@@ -933,7 +933,7 @@ TEST(SerializeToplevelThreeBigStrings) {
       isolate->factory()->NewFunctionFromSharedFunctionInfo(
           copy, isolate->native_context());
 
-  Execution::Call(isolate, copy_fun, global, 0, NULL);
+  USE(Execution::Call(isolate, copy_fun, global, 0, NULL));
 
   CHECK_EQ(600000 + 700000, CompileRun("(a + b).length")->Int32Value());
   CHECK_EQ(500000 + 600000, CompileRun("(b + c).length")->Int32Value());