Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Unified Diff: Source/WebKit/chromium/src/WebScopedCompilation.cpp

Issue 14362015: WIP enum / V8PerContextData solution (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/public/WebScopedCompilation.h ('k') | Source/bindings/v8/ScriptController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebScopedCompilation.cpp
diff --git a/Source/WebKit/chromium/src/WebScopedMicrotaskSuppression.cpp b/Source/WebKit/chromium/src/WebScopedCompilation.cpp
similarity index 82%
copy from Source/WebKit/chromium/src/WebScopedMicrotaskSuppression.cpp
copy to Source/WebKit/chromium/src/WebScopedCompilation.cpp
index 7d165c189c474cdad10126a1e77d46bb8d1cd959..7cf40810253e1d46d5daeecf21823319bbc64aa2 100644
--- a/Source/WebKit/chromium/src/WebScopedMicrotaskSuppression.cpp
+++ b/Source/WebKit/chromium/src/WebScopedCompilation.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -29,25 +29,25 @@
*/
#include "config.h"
-#include "WebScopedMicrotaskSuppression.h"
+#include "WebScopedCompilation.h"
-#include "V8RecursionScope.h"
+#include "V8PerContextData.h"
#include <wtf/OwnPtr.h>
namespace WebKit {
#ifndef NDEBUG
-class WebScopedMicrotaskSuppression::Impl : public WebCore::V8RecursionScope::MicrotaskSuppression { };
+class WebScopedCompilation::Impl : public WebCore::V8RecursionScope::MicrotaskSuppression { };
#endif
-void WebScopedMicrotaskSuppression::initialize()
+WebScopedCompilation::WebScopedCompilation(v8::Handle<v8::Context>, WebPrivateOwnPtr<Impl> impl)
{
#ifndef NDEBUG
m_impl.reset(new Impl());
#endif
}
-void WebScopedMicrotaskSuppression::reset()
+WebScopedCompilation::~WebScopedCompilation()
{
#ifndef NDEBUG
m_impl.reset(0);
« no previous file with comments | « Source/WebKit/chromium/public/WebScopedCompilation.h ('k') | Source/bindings/v8/ScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698