Line data Source code
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/v8.h"
8 : #include "src/snapshot/natives.h"
9 : #include "src/utils.h"
10 :
11 : namespace v8 {
12 : namespace internal {
13 :
14 : static const char sources[] = { 10, 40, 102, 117, 110, 99, 116, 105, 111, 110, 32, 40, 103, 108, 111, 98, 97,
15 : 108, 44, 32, 98, 105, 110, 100, 105, 110, 103, 41, 32, 123, 10, 32, 32, 39, 117,
16 : 115, 101, 32, 115, 116, 114, 105, 99, 116, 39, 59, 10, 32, 32, 98, 105, 110,
17 : 100, 105, 110, 103, 46, 116, 101, 115, 116, 69, 120, 112, 101, 114, 105, 109,
18 : 101, 110, 116, 97, 108, 69, 120, 116, 114, 97, 83, 104, 111, 117, 108, 100, 82,
19 : 101, 116, 117, 114, 110, 84, 101, 110, 32, 61, 32, 102, 117, 110, 99, 116, 105,
20 : 111, 110, 32, 40, 41, 32, 123, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110,
21 : 32, 49, 48, 59, 10, 32, 32, 125, 59, 10, 32, 32, 98, 105, 110, 100, 105, 110,
22 : 103, 46, 116, 101, 115, 116, 69, 120, 112, 101, 114, 105, 109, 101, 110, 116,
23 : 97, 108, 69, 120, 116, 114, 97, 83, 104, 111, 117, 108, 100, 67, 97, 108, 108,
24 : 84, 111, 82, 117, 110, 116, 105, 109, 101, 32, 61, 32, 102, 117, 110, 99, 116,
25 : 105, 111, 110, 40, 41, 32, 123, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114,
26 : 110, 32, 98, 105, 110, 100, 105, 110, 103, 46, 114, 117, 110, 116, 105, 109,
27 : 101, 40, 51, 41, 59, 10, 32, 32, 125, 59, 10, 125, 41, 10 };
28 :
29 : template <>
30 0 : int NativesCollection<EXPERIMENTAL_EXTRAS>::GetBuiltinsCount() {
31 0 : return 1;
32 : }
33 :
34 : template <>
35 0 : int NativesCollection<EXPERIMENTAL_EXTRAS>::GetDebuggerCount() {
36 0 : return 0;
37 : }
38 :
39 : template <>
40 0 : int NativesCollection<EXPERIMENTAL_EXTRAS>::GetIndex(const char* name) {
41 0 : if (strcmp(name, "test-experimental-extra") == 0) return 0;
42 0 : return -1;
43 : }
44 :
45 : template <>
46 0 : Vector<const char> NativesCollection<EXPERIMENTAL_EXTRAS>::GetScriptSource(int index) {
47 0 : if (index == 0) return Vector<const char>(sources + 0, 235);
48 0 : return Vector<const char>("", 0);
49 : }
50 :
51 : template <>
52 0 : Vector<const char> NativesCollection<EXPERIMENTAL_EXTRAS>::GetScriptName(int index) {
53 0 : if (index == 0) return Vector<const char>("native test-experimental-extra.js", 33);
54 0 : return Vector<const char>("", 0);
55 : }
56 :
57 : template <>
58 0 : Vector<const char> NativesCollection<EXPERIMENTAL_EXTRAS>::GetScriptsSource() {
59 0 : return Vector<const char>(sources, 235);
60 : }
61 : } // internal
62 : } // v8
|