| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |