Revision: 11813
Author: [email protected]
Date: Thu Jun 14 05:21:05 2012
Log: Workaround for: Chrome dev tools crashes when taking a heap
snapshot of Docs offline shared worker.
BUG=132727
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10543160
http://code.google.com/p/v8/source/detail?r=11813
Modified:
/branches/bleeding_edge/src/profile-generator.cc
=======================================
--- /branches/bleeding_edge/src/profile-generator.cc Wed Jun 13 04:23:16
2012
+++ /branches/bleeding_edge/src/profile-generator.cc Thu Jun 14 05:21:05
2012
@@ -2692,6 +2692,10 @@
Object* obj_document;
if (global_obj->GetProperty(*document_string)->ToObject(&obj_document)
&&
obj_document->IsJSObject()) {
+ // FixMe: Workaround: SharedWorker's current Isolate has NULL
context.
+ // As result GetProperty(*url_string) will crash.
+ if (!Isolate::Current()->context() &&
obj_document->IsJSGlobalProxy())
+ continue;
JSObject* document = JSObject::cast(obj_document);
Object* obj_url;
if (document->GetProperty(*url_string)->ToObject(&obj_url) &&
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev