Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index c7983b7256651260fd69ea4e9f5d410d7f2e93b1..728648e0e89c4457387c0c99c85f07462d886d53 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -1038,7 +1038,7 @@ TEST(JSArray) { |
// Set array length to 0. |
JSArray::SetLength(array, 0); |
- CHECK_EQ(Smi::kZero, array->length()); |
+ CHECK_EQ(Smi::FromInt(0), array->length()); |
// Must be in fast mode. |
CHECK(array->HasFastSmiOrObjectElements()); |
@@ -1544,7 +1544,7 @@ TEST(TestCodeFlushingIncrementalAbort) { |
// is running so that incremental marking aborts and code flushing is |
// disabled. |
int position = function->shared()->start_position(); |
- Handle<Object> breakpoint_object(Smi::kZero, isolate); |
+ Handle<Object> breakpoint_object(Smi::FromInt(0), isolate); |
EnableDebugger(CcTest::isolate()); |
isolate->debug()->SetBreakPoint(function, breakpoint_object, &position); |
isolate->debug()->ClearBreakPoint(breakpoint_object); |