Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index fe83b8a206ded97c44e039f9c802c806a683c86d..cd112a7d043d276d36efad6c2527cb2f569b170a 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7899,7 +7899,7 @@ bool HOptimizedGraphBuilder::TryInlineApiCall(Handle<JSFunction> function, |
if (call_type == kCallApiFunction) { |
// Cannot embed a direct reference to the global proxy map |
// as it maybe dropped on deserialization. |
- CHECK(!Serializer::enabled()); |
+ CHECK(!Serializer::enabled(isolate())); |
ASSERT_EQ(0, receiver_maps->length()); |
receiver_maps->Add(handle( |
function->context()->global_object()->global_receiver()->map()), |
@@ -8086,7 +8086,7 @@ HValue* HOptimizedGraphBuilder::ImplicitReceiverFor(HValue* function, |
if (shared->strict_mode() == SLOPPY && !shared->native()) { |
// Cannot embed a direct reference to the global proxy |
// as is it dropped on deserialization. |
- CHECK(!Serializer::enabled()); |
+ CHECK(!Serializer::enabled(isolate())); |
Handle<JSObject> global_receiver( |
target->context()->global_object()->global_receiver()); |
return Add<HConstant>(global_receiver); |