| 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_
|
|
|