Merge V8 5.2.361.47 DO NOT MERGE
https://chromium.googlesource.com/v8/v8/+/5.2.361.47
FPIIM-449
Change-Id: Ibec421b85a9b88cb3a432ada642e469fe7e78346
(cherry picked from commit bcf72ee8e3b26f1d0726869c7ddb3921c68b09a8)
diff --git a/src/isolate-inl.h b/src/isolate-inl.h
index da36f76..48ea0aa 100644
--- a/src/isolate-inl.h
+++ b/src/isolate-inl.h
@@ -73,7 +73,11 @@
Handle<JSGlobalObject> Isolate::global_object() {
- return Handle<JSGlobalObject>(context()->global_object(), this);
+ return handle(context()->global_object(), this);
+}
+
+Handle<JSObject> Isolate::global_proxy() {
+ return handle(context()->global_proxy(), this);
}
@@ -111,11 +115,17 @@
// done here. In place, there are mjsunit tests harmony/array-species* which
// ensure that behavior is correct in various invalid protector cases.
- PropertyCell* species_cell = heap()->species_protector();
+ Cell* species_cell = heap()->species_protector();
return species_cell->value()->IsSmi() &&
Smi::cast(species_cell->value())->value() == kArrayProtectorValid;
}
+bool Isolate::IsHasInstanceLookupChainIntact() {
+ if (!FLAG_harmony_instanceof) return true;
+ PropertyCell* has_instance_cell = heap()->has_instance_protector();
+ return has_instance_cell->value() == Smi::FromInt(kArrayProtectorValid);
+}
+
} // namespace internal
} // namespace v8