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

Side by Side Diff: src/v8.h

Issue 469783002: Require V8 to be explicitly initialized before an Isolate is created (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase 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
54 class V8 : public AllStatic { 52 class V8 : public AllStatic {
55 public: 53 public:
56 // Global actions. 54 // Global actions.
57 55
58 // If Initialize is called with des == NULL, the initial state is 56 static bool Initialize();
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);
63 static void TearDown(); 57 static void TearDown();
64 58
65 // Report process out of memory. Implementation found in api.cc. 59 // Report process out of memory. Implementation found in api.cc.
66 static void FatalProcessOutOfMemory(const char* location, 60 static void FatalProcessOutOfMemory(const char* location,
67 bool take_snapshot = false); 61 bool take_snapshot = false);
68 62
69 // Allows an entropy source to be provided for use in random number 63 // Allows an entropy source to be provided for use in random number
70 // generation. 64 // generation.
71 static void SetEntropySource(EntropySource source); 65 static void SetEntropySource(EntropySource source);
72 // Support for return-address rewriting profilers. 66 // Support for return-address rewriting profilers.
(...skipping 26 matching lines...) Expand all
99 }; 93 };
100 94
101 95
102 // JavaScript defines two kinds of 'nil'. 96 // JavaScript defines two kinds of 'nil'.
103 enum NilValue { kNullValue, kUndefinedValue }; 97 enum NilValue { kNullValue, kUndefinedValue };
104 98
105 99
106 } } // namespace v8::internal 100 } } // namespace v8::internal
107 101
108 #endif // V8_V8_H_ 102 #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