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

Unified Diff: test/cctest/print-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 | « test/cctest/cctest.gyp ('k') | test/cctest/print-extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/print-extension.h
diff --git a/src/extensions/gc-extension.h b/test/cctest/print-extension.h
similarity index 81%
copy from src/extensions/gc-extension.h
copy to test/cctest/print-extension.h
index 8c25e7d84d5e286b763d22873ca1d7962d1a9cce..7fe9226f7b48da3021496f63389eb71bb2971396 100644
--- a/src/extensions/gc-extension.h
+++ b/test/cctest/print-extension.h
@@ -1,4 +1,4 @@
-// Copyright 2010 the V8 project authors. All rights reserved.
+// Copyright 2014 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,24 +25,23 @@
// (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_TEST_CCTEST_PRINT_EXTENSION_H_
+#define V8_TEST_CCTEST_PRINT_EXTENSION_H_
#include "v8.h"
namespace v8 {
namespace internal {
-class GCExtension : public v8::Extension {
+class PrintExtension : public v8::Extension {
public:
- explicit GCExtension(const char* source) : v8::Extension("v8/gc", source) {}
+ PrintExtension() : v8::Extension("v8/print", "native function print();") { }
virtual v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate(
v8::Isolate* isolate,
v8::Handle<v8::String> name);
- static void GC(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Register();
+ static void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
};
} } // namespace v8::internal
-#endif // V8_EXTENSIONS_GC_EXTENSION_H_
+#endif
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/cctest/print-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698