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

Side by Side Diff: src/v8.h

Issue 582953002: Revert "Require V8 to be explicitly initialized before an Isolate is created" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/snapshot-external.cc ('k') | src/v8.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 // 5 //
6 // Top include for all V8 .cc files. 6 // Top include for all V8 .cc files.
7 // 7 //
8 8
9 #ifndef V8_V8_H_ 9 #ifndef V8_V8_H_
10 #define V8_V8_H_ 10 #define V8_V8_H_
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "src/heap/incremental-marking-inl.h" // NOLINT 42 #include "src/heap/incremental-marking-inl.h" // NOLINT
43 #include "src/heap/mark-compact-inl.h" // NOLINT 43 #include "src/heap/mark-compact-inl.h" // NOLINT
44 #include "src/log-inl.h" // NOLINT 44 #include "src/log-inl.h" // NOLINT
45 #include "src/handles-inl.h" // NOLINT 45 #include "src/handles-inl.h" // NOLINT
46 #include "src/types-inl.h" // NOLINT 46 #include "src/types-inl.h" // NOLINT
47 #include "src/zone-inl.h" // NOLINT 47 #include "src/zone-inl.h" // NOLINT
48 48
49 namespace v8 { 49 namespace v8 {
50 namespace internal { 50 namespace internal {
51 51
52 class Deserializer;
53
52 class V8 : public AllStatic { 54 class V8 : public AllStatic {
53 public: 55 public:
54 // Global actions. 56 // Global actions.
55 57
56 static bool Initialize(); 58 // If Initialize is called with des == NULL, the initial state is
59 // created from scratch. If a non-null Deserializer is given, the
60 // initial state is created by reading the deserialized data into an
61 // empty heap.
62 static bool Initialize(Deserializer* des);
57 static void TearDown(); 63 static void TearDown();
58 64
59 // Report process out of memory. Implementation found in api.cc. 65 // Report process out of memory. Implementation found in api.cc.
60 static void FatalProcessOutOfMemory(const char* location, 66 static void FatalProcessOutOfMemory(const char* location,
61 bool take_snapshot = false); 67 bool take_snapshot = false);
62 68
63 // Allows an entropy source to be provided for use in random number 69 // Allows an entropy source to be provided for use in random number
64 // generation. 70 // generation.
65 static void SetEntropySource(EntropySource source); 71 static void SetEntropySource(EntropySource source);
66 // Support for return-address rewriting profilers. 72 // Support for return-address rewriting profilers.
(...skipping 26 matching lines...) Expand all
93 }; 99 };
94 100
95 101
96 // JavaScript defines two kinds of 'nil'. 102 // JavaScript defines two kinds of 'nil'.
97 enum NilValue { kNullValue, kUndefinedValue }; 103 enum NilValue { kNullValue, kUndefinedValue };
98 104
99 105
100 } } // namespace v8::internal 106 } } // namespace v8::internal
101 107
102 #endif // V8_V8_H_ 108 #endif // V8_V8_H_
OLDNEW
« no previous file with comments | « src/snapshot-external.cc ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698