Index: src/extensions/free-buffer-extension.h |
diff --git a/src/extensions/gc-extension.h b/src/extensions/free-buffer-extension.h |
similarity index 80% |
copy from src/extensions/gc-extension.h |
copy to src/extensions/free-buffer-extension.h |
index e412b92a4d997aad87160ddd789b85419bdf3037..29ffbc014ecd8c073adb783cfe8d1888e88ab921 100644 |
--- a/src/extensions/gc-extension.h |
+++ b/src/extensions/free-buffer-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: |
@@ -25,23 +25,24 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-#ifndef V8_EXTENSIONS_GC_EXTENSION_H_ |
-#define V8_EXTENSIONS_GC_EXTENSION_H_ |
+#ifndef V8_EXTENSIONS_FREE_BUFFER_EXTENSION_H_ |
+#define V8_EXTENSIONS_FREE_BUFFER_EXTENSION_H_ |
#include "v8.h" |
namespace v8 { |
namespace internal { |
-class GCExtension : public v8::Extension { |
+class FreeBufferExtension : public v8::Extension { |
public: |
- explicit GCExtension(const char* source) : v8::Extension("v8/gc", source) {} |
+ explicit FreeBufferExtension(const char* source) |
+ : v8::Extension("v8/free-buffer", source) {} |
virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( |
v8::Handle<v8::String> name); |
- static void GC(const v8::FunctionCallbackInfo<v8::Value>& args); |
+ static void FreeBuffer(const v8::FunctionCallbackInfo<v8::Value>& args); |
static void Register(); |
}; |
} } // namespace v8::internal |
-#endif // V8_EXTENSIONS_GC_EXTENSION_H_ |
+#endif // V8_EXTENSIONS_FREE_BUFFER_EXTENSION_H_ |