| 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);
|
|
|