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

Unified Diff: src/natives.h

Issue 7519: Added first shot at a development shell (Closed)
Patch Set: Factored js code out of d8.cc. Created 12 years, 2 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
« src/d8.js ('K') | « src/flag-definitions.h ('k') | src/smart-pointer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/natives.h
diff --git a/src/natives.h b/src/natives.h
index 0bb879f27c30859a558ae691a3e124f9e9a85f11..3eb80909a171a3a8fc19d02c6632659443474975 100644
--- a/src/natives.h
+++ b/src/natives.h
@@ -34,7 +34,12 @@ typedef bool (*NativeSourceCallback)(Vector<const char> name,
Vector<const char> source,
int index);
-class Natives {
+enum NativeType {
+ CORE, D8
+};
+
+template <NativeType type>
+class NativesCollection {
public:
// Number of built-in scripts.
static int GetBuiltinsCount();
@@ -50,6 +55,8 @@ class Natives {
static Vector<const char> GetScriptName(int index);
};
+typedef NativesCollection<CORE> Natives;
+
} } // namespace v8::internal
#endif // V8_NATIVES_H_
« src/d8.js ('K') | « src/flag-definitions.h ('k') | src/smart-pointer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698