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

Unified Diff: src/extensions/free-buffer-extension.h

Issue 130213009: Various extension-related cleanup and simplifications. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Whitespace Created 6 years, 11 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 | « src/extensions/externalize-string-extension.cc ('k') | src/extensions/free-buffer-extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/free-buffer-extension.h
diff --git a/src/extensions/free-buffer-extension.h b/src/extensions/free-buffer-extension.h
index 22d466f61e02b4e8367dfc9d06f00095aa5efe02..26ff7d1bb0cb2952ac1f8a1a67480067f7b73551 100644
--- a/src/extensions/free-buffer-extension.h
+++ b/src/extensions/free-buffer-extension.h
@@ -35,13 +35,12 @@ namespace internal {
class FreeBufferExtension : public v8::Extension {
public:
- explicit FreeBufferExtension(const char* source)
- : v8::Extension("v8/free-buffer", source) {}
+ FreeBufferExtension()
+ : v8::Extension("v8/free-buffer", "native function freeBuffer();") {}
virtual v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate(
v8::Isolate* isolate,
v8::Handle<v8::String> name);
static void FreeBuffer(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Register();
};
} } // namespace v8::internal
« no previous file with comments | « src/extensions/externalize-string-extension.cc ('k') | src/extensions/free-buffer-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698