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 6e1f6512350b24dc56e39b1b25d38ce5b8095652..482bc34e5c03c47fd6bf30f7d0fe097ca9ba2cd8 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 15c587b22595a1f2dc10eaba32a4aeb4d437a265..48debe0be4e4f5262a03e0b14faf564f1f40cf9a 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());