Title: [141368] trunk/Source/WebCore
- Revision
- 141368
- Author
- [email protected]
- Date
- 2013-01-30 20:32:21 -0800 (Wed, 30 Jan 2013)
Log Message
[V8] Use state->isolate() when state is not 0
https://bugs.webkit.org/show_bug.cgi?id=107674
Reviewed by Adam Barth.
No tests. No change in behavior.
* bindings/v8/ScriptProfiler.cpp:
(WebCore::ScriptProfiler::start):
(WebCore::ScriptProfiler::stop):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (141367 => 141368)
--- trunk/Source/WebCore/ChangeLog 2013-01-31 04:07:38 UTC (rev 141367)
+++ trunk/Source/WebCore/ChangeLog 2013-01-31 04:32:21 UTC (rev 141368)
@@ -1,3 +1,16 @@
+2013-01-30 Kentaro Hara <[email protected]>
+
+ [V8] Use state->isolate() when state is not 0
+ https://bugs.webkit.org/show_bug.cgi?id=107674
+
+ Reviewed by Adam Barth.
+
+ No tests. No change in behavior.
+
+ * bindings/v8/ScriptProfiler.cpp:
+ (WebCore::ScriptProfiler::start):
+ (WebCore::ScriptProfiler::stop):
+
2013-01-30 Adam Barth <[email protected]>
The background HTML parser should be able to parse speculatively
Modified: trunk/Source/WebCore/bindings/v8/ScriptProfiler.cpp (141367 => 141368)
--- trunk/Source/WebCore/bindings/v8/ScriptProfiler.cpp 2013-01-31 04:07:38 UTC (rev 141367)
+++ trunk/Source/WebCore/bindings/v8/ScriptProfiler.cpp 2013-01-31 04:32:21 UTC (rev 141368)
@@ -59,7 +59,7 @@
profileNameIdleTimeMap->add(title, 0);
v8::HandleScope hs;
- v8::CpuProfiler::StartProfiling(v8String(title, v8::Isolate::GetCurrent()));
+ v8::CpuProfiler::StartProfiling(v8String(title, state ? state->isolate() : v8::Isolate::GetCurrent()));
}
void ScriptProfiler::startForPage(Page*, const String& title)
@@ -78,7 +78,7 @@
{
v8::HandleScope hs;
const v8::CpuProfile* profile = "" ?
- v8::CpuProfiler::StopProfiling(v8String(title, v8::Isolate::GetCurrent()), state->context()->GetSecurityToken()) :
+ v8::CpuProfiler::StopProfiling(v8String(title, state->isolate()), state->context()->GetSecurityToken()) :
v8::CpuProfiler::StopProfiling(v8String(title, v8::Isolate::GetCurrent()));
if (!profile)
return 0;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes