Commit 2577d6c2 authored by sigurds@chromium.org's avatar sigurds@chromium.org

Fix compilation after r24639

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
parent d7acb914
...@@ -263,7 +263,8 @@ class Deserializer: public SerializerDeserializer { ...@@ -263,7 +263,8 @@ class Deserializer: public SerializerDeserializer {
void AddReservation(int space, uint32_t chunk) { void AddReservation(int space, uint32_t chunk) {
DCHECK(space >= 0); DCHECK(space >= 0);
DCHECK(space < kNumberOfSpaces); 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}); reservations_[space].Add({chunk, NULL, NULL});
} }
......
...@@ -933,7 +933,7 @@ TEST(SerializeToplevelThreeBigStrings) { ...@@ -933,7 +933,7 @@ TEST(SerializeToplevelThreeBigStrings) {
isolate->factory()->NewFunctionFromSharedFunctionInfo( isolate->factory()->NewFunctionFromSharedFunctionInfo(
copy, isolate->native_context()); 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(600000 + 700000, CompileRun("(a + b).length")->Int32Value());
CHECK_EQ(500000 + 600000, CompileRun("(b + c).length")->Int32Value()); CHECK_EQ(500000 + 600000, CompileRun("(b + c).length")->Int32Value());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment