| Index: src/extensions/i18n/i18n-extension.h
|
| diff --git a/src/extensions/gc-extension.h b/src/extensions/i18n/i18n-extension.h
|
| similarity index 79%
|
| copy from src/extensions/gc-extension.h
|
| copy to src/extensions/i18n/i18n-extension.h
|
| index e412b92a4d997aad87160ddd789b85419bdf3037..050c336a67a21fd6cb32892e14215cac11971111 100644
|
| --- a/src/extensions/gc-extension.h
|
| +++ b/src/extensions/i18n/i18n-extension.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2013 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -24,24 +24,28 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +// limitations under the License.
|
|
|
| -#ifndef V8_EXTENSIONS_GC_EXTENSION_H_
|
| -#define V8_EXTENSIONS_GC_EXTENSION_H_
|
| +#ifndef V8_EXTENSIONS_I18N_I18N_EXTENSION_H_
|
| +#define V8_EXTENSIONS_I18N_I18N_EXTENSION_H_
|
|
|
| #include "v8.h"
|
|
|
| -namespace v8 {
|
| -namespace internal {
|
| +namespace v8_i18n {
|
|
|
| -class GCExtension : public v8::Extension {
|
| +class Extension : public v8::Extension {
|
| public:
|
| - explicit GCExtension(const char* source) : v8::Extension("v8/gc", source) {}
|
| + Extension();
|
| +
|
| virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
|
| v8::Handle<v8::String> name);
|
| - static void GC(const v8::FunctionCallbackInfo<v8::Value>& args);
|
| +
|
| static void Register();
|
| +
|
| + private:
|
| + static Extension* extension_;
|
| };
|
|
|
| -} } // namespace v8::internal
|
| +} // namespace v8_i18n
|
|
|
| -#endif // V8_EXTENSIONS_GC_EXTENSION_H_
|
| +#endif // V8_EXTENSIONS_I18N_I18N_EXTENSION_H_
|
|
|