Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 23c0f5b9ab7628e7a8ba7441aa72f8e716bf7b5a..e50f88d15a26d0c3038fd743bfc1f6aab20f65b5 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1236,7 +1236,7 @@ Handle<JSFunction> Factory::NewFunction(Handle<Map> map, |
Handle<SharedFunctionInfo> info = |
NewSharedFunctionInfo(name, code, map->is_constructor()); |
DCHECK(is_sloppy(info->language_mode())); |
- DCHECK(!map->IsUndefined()); |
+ DCHECK(!map->IsUndefined(isolate())); |
DCHECK( |
map.is_identical_to(isolate()->sloppy_function_map()) || |
map.is_identical_to(isolate()->sloppy_function_without_prototype_map()) || |
@@ -2216,7 +2216,7 @@ Handle<String> Factory::NumberToString(Handle<Object> number, |
isolate()->counters()->number_to_string_runtime()->Increment(); |
if (check_number_string_cache) { |
Handle<Object> cached = GetNumberStringCache(number); |
- if (!cached->IsUndefined()) return Handle<String>::cast(cached); |
+ if (!cached->IsUndefined(isolate())) return Handle<String>::cast(cached); |
} |
char arr[100]; |
@@ -2322,7 +2322,7 @@ Handle<Map> Factory::ObjectLiteralMapFromCache(Handle<Context> context, |
int cache_index = number_of_properties - 1; |
Handle<Object> maybe_cache(context->map_cache(), isolate()); |
- if (maybe_cache->IsUndefined()) { |
+ if (maybe_cache->IsUndefined(isolate())) { |
// Allocate the new map cache for the native context. |
maybe_cache = NewFixedArray(kMapCacheSize, TENURED); |
context->set_map_cache(*maybe_cache); |