Index: src/runtime/runtime-regexp.cc |
diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc |
index 0a9f1054dc5e48ff00fe53773f9ae4fbfeb9f21d..7774928518ea865f75b7809414b7fee14f9e9de5 100644 |
--- a/src/runtime/runtime-regexp.cc |
+++ b/src/runtime/runtime-regexp.cc |
@@ -706,7 +706,7 @@ RUNTIME_FUNCTION(Runtime_StringSplit) { |
&last_match_cache_unused, |
RegExpResultsCache::STRING_SPLIT_SUBSTRINGS), |
isolate); |
- if (*cached_answer != Smi::kZero) { |
+ if (*cached_answer != Smi::FromInt(0)) { |
// The cache FixedArray is a COW-array and can therefore be reused. |
Handle<JSArray> result = isolate->factory()->NewJSArrayWithElements( |
Handle<FixedArray>::cast(cached_answer)); |