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

Side by Side Diff: src/natives.h

Issue 328693003: Revert "Support external startup data in V8." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix brace. Created 6 years, 6 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 | Annotate | Revision Log
« 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
1 // Copyright 2011 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_NATIVES_H_ 5 #ifndef V8_NATIVES_H_
6 #define V8_NATIVES_H_ 6 #define V8_NATIVES_H_
7 7
8 #include "src/vector.h"
9
10 namespace v8 { class StartupData; } // Forward declaration.
11
12 namespace v8 { 8 namespace v8 {
13 namespace internal { 9 namespace internal {
14 10
15 typedef bool (*NativeSourceCallback)(Vector<const char> name, 11 typedef bool (*NativeSourceCallback)(Vector<const char> name,
16 Vector<const char> source, 12 Vector<const char> source,
17 int index); 13 int index);
18 14
19 enum NativeType { 15 enum NativeType {
20 CORE, EXPERIMENTAL, D8, TEST 16 CORE, EXPERIMENTAL, D8, TEST
21 }; 17 };
(...skipping 14 matching lines...) Expand all
36 static int GetRawScriptsSize(); 32 static int GetRawScriptsSize();
37 static Vector<const char> GetRawScriptSource(int index); 33 static Vector<const char> GetRawScriptSource(int index);
38 static Vector<const char> GetScriptName(int index); 34 static Vector<const char> GetScriptName(int index);
39 static Vector<const byte> GetScriptsSource(); 35 static Vector<const byte> GetScriptsSource();
40 static void SetRawScriptsSource(Vector<const char> raw_source); 36 static void SetRawScriptsSource(Vector<const char> raw_source);
41 }; 37 };
42 38
43 typedef NativesCollection<CORE> Natives; 39 typedef NativesCollection<CORE> Natives;
44 typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives; 40 typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives;
45 41
46 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
47 // Used for reading the natives at runtime. Implementation in natives-empty.cc
48 void SetNativesFromFile(StartupData* natives_blob);
49 #endif
50
51 } } // namespace v8::internal 42 } } // namespace v8::internal
52 43
53 #endif // V8_NATIVES_H_ 44 #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