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

Side by Side Diff: src/natives.h

Issue 1041743002: Serializer: move to a subfolder and clean up includes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removed OWNERS Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/mksnapshot.cc ('k') | src/natives-external.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_NATIVES_H_
6 #define V8_NATIVES_H_
7
8 #include "src/vector.h"
9
10 namespace v8 { class StartupData; } // Forward declaration.
11
12 namespace v8 {
13 namespace internal {
14
15 enum NativeType {
16 CORE, EXPERIMENTAL, D8, TEST
17 };
18
19 template <NativeType type>
20 class NativesCollection {
21 public:
22 // Number of built-in scripts.
23 static int GetBuiltinsCount();
24 // Number of debugger implementation scripts.
25 static int GetDebuggerCount();
26
27 // These are used to access built-in scripts. The debugger implementation
28 // scripts have an index in the interval [0, GetDebuggerCount()). The
29 // non-debugger scripts have an index in the interval [GetDebuggerCount(),
30 // GetNativesCount()).
31 static int GetIndex(const char* name);
32 static Vector<const char> GetScriptSource(int index);
33 static Vector<const char> GetScriptName(int index);
34 static Vector<const char> GetScriptsSource();
35 };
36
37 typedef NativesCollection<CORE> Natives;
38 typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives;
39
40 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
41 // Used for reading the natives at runtime. Implementation in natives-empty.cc
42 void SetNativesFromFile(StartupData* natives_blob);
43 void ReadNatives();
44 void DisposeNatives();
45 #endif
46
47 } } // namespace v8::internal
48
49 #endif // V8_NATIVES_H_
OLDNEW
« no previous file with comments | « src/mksnapshot.cc ('k') | src/natives-external.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698