Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index b296b9372379bf8bcfc91809d7750d0d9207c03d..981b61d8f1bca0406a514cd62ac17d140ed9f9da 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8033,7 +8033,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(isolate())); |
+ CHECK(!isolate()->serializer_enabled()); |
ASSERT_EQ(0, receiver_maps->length()); |
receiver_maps->Add(handle( |
function->context()->global_object()->global_receiver()->map()), |
@@ -8220,7 +8220,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(isolate())); |
+ CHECK(!isolate()->serializer_enabled()); |
Handle<JSObject> global_receiver( |
target->context()->global_object()->global_receiver()); |
return Add<HConstant>(global_receiver); |