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

Side by Side Diff: src/snapshot/natives.h

Issue 2732213005: Revert "This is a speculative chain of reverts to improve a Chrome" (Closed)
Patch Set: merge Created 3 years, 9 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/runtime/runtime-futex.cc ('k') | src/snapshot/natives-common.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_SNAPSHOT_NATIVES_H_ 5 #ifndef V8_SNAPSHOT_NATIVES_H_
6 #define V8_SNAPSHOT_NATIVES_H_ 6 #define V8_SNAPSHOT_NATIVES_H_
7 7
8 #include "src/objects.h" 8 #include "src/objects.h"
9 #include "src/vector.h" 9 #include "src/vector.h"
10 10
11 namespace v8 { class StartupData; } // Forward declaration. 11 namespace v8 { class StartupData; } // Forward declaration.
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 enum NativeType { 16 enum NativeType {
17 CORE, 17 CORE,
18 EXPERIMENTAL,
19 EXTRAS, 18 EXTRAS,
20 EXPERIMENTAL_EXTRAS, 19 EXPERIMENTAL_EXTRAS,
21 D8, 20 D8,
22 TEST 21 TEST
23 }; 22 };
24 23
25 // Extra handling for V8_EXPORT_PRIVATE in combination with USING_V8_SHARED 24 // Extra handling for V8_EXPORT_PRIVATE in combination with USING_V8_SHARED
26 // since definition of methods of classes marked as dllimport is not allowed. 25 // since definition of methods of classes marked as dllimport is not allowed.
27 template <NativeType type> 26 template <NativeType type>
28 #ifdef USING_V8_SHARED 27 #ifdef USING_V8_SHARED
(...skipping 18 matching lines...) Expand all
47 static Vector<const char> GetScriptSource(int index); 46 static Vector<const char> GetScriptSource(int index);
48 static Vector<const char> GetScriptName(int index); 47 static Vector<const char> GetScriptName(int index);
49 static Vector<const char> GetScriptsSource(); 48 static Vector<const char> GetScriptsSource();
50 49
51 // The following methods are implemented in natives-common.cc: 50 // The following methods are implemented in natives-common.cc:
52 51
53 static FixedArray* GetSourceCache(Heap* heap); 52 static FixedArray* GetSourceCache(Heap* heap);
54 }; 53 };
55 54
56 typedef NativesCollection<CORE> Natives; 55 typedef NativesCollection<CORE> Natives;
57 typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives;
58 typedef NativesCollection<EXTRAS> ExtraNatives; 56 typedef NativesCollection<EXTRAS> ExtraNatives;
59 typedef NativesCollection<EXPERIMENTAL_EXTRAS> ExperimentalExtraNatives; 57 typedef NativesCollection<EXPERIMENTAL_EXTRAS> ExperimentalExtraNatives;
60 58
61 59
62 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 60 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
63 // Used for reading the natives at runtime. Implementation in natives-empty.cc 61 // Used for reading the natives at runtime. Implementation in natives-empty.cc
64 void SetNativesFromFile(StartupData* natives_blob); 62 void SetNativesFromFile(StartupData* natives_blob);
65 void ReadNatives(); 63 void ReadNatives();
66 void DisposeNatives(); 64 void DisposeNatives();
67 #endif 65 #endif
68 66
69 } // namespace internal 67 } // namespace internal
70 } // namespace v8 68 } // namespace v8
71 69
72 #endif // V8_SNAPSHOT_NATIVES_H_ 70 #endif // V8_SNAPSHOT_NATIVES_H_
OLDNEW
« no previous file with comments | « src/runtime/runtime-futex.cc ('k') | src/snapshot/natives-common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698