• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 
3 // This file was generated from .js source files by GYP.  If you
4 // want to make changes to this file you should either change the
5 // javascript source files or the GYP script.
6 
7 #include "src/init/v8.h"
8 #include "src/snapshot/natives.h"
9 #include "src/utils/utils.h"
10 
11 namespace v8 {
12 namespace internal {
13 
14   static const char sources[] = { 40, 102, 117, 110, 99, 116, 105, 111, 110, 40, 41, 32, 123, 125, 41 };
15 
16   template <>
GetBuiltinsCount()17   int NativesCollection<EXTRAS>::GetBuiltinsCount() {
18     return 1;
19   }
20 
21   template <>
GetIndex(const char * name)22   int NativesCollection<EXTRAS>::GetIndex(const char* name) {
23     if (strcmp(name, "dummy") == 0) return 0;
24     return -1;
25   }
26 
27   template <>
GetScriptSource(int index)28   Vector<const char> NativesCollection<EXTRAS>::GetScriptSource(int index) {
29     if (index == 0) return Vector<const char>(sources + 0, 15);
30     return Vector<const char>("", 0);
31   }
32 
33   template <>
GetScriptName(int index)34   Vector<const char> NativesCollection<EXTRAS>::GetScriptName(int index) {
35     if (index == 0) return Vector<const char>("native dummy.js", 15);
36     return Vector<const char>("", 0);
37   }
38 
39   template <>
GetScriptsSource()40   Vector<const char> NativesCollection<EXTRAS>::GetScriptsSource() {
41     return Vector<const char>(sources, 15);
42   }
43 }  // internal
44 }  // v8
45