| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 namespace internal { | 49 namespace internal { |
| 50 | 50 |
| 51 class V8 : public AllStatic { | 51 class V8 : public AllStatic { |
| 52 public: | 52 public: |
| 53 // Global actions. | 53 // Global actions. |
| 54 | 54 |
| 55 static bool Initialize(); | 55 static bool Initialize(); |
| 56 static void TearDown(); | 56 static void TearDown(); |
| 57 | 57 |
| 58 // Report process out of memory. Implementation found in api.cc. | 58 // Report process out of memory. Implementation found in api.cc. |
| 59 // This function will not return, but will terminate the execution. |
| 59 static void FatalProcessOutOfMemory(const char* location, | 60 static void FatalProcessOutOfMemory(const char* location, |
| 60 bool take_snapshot = false); | 61 bool take_snapshot = false); |
| 61 | 62 |
| 62 // 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 |
| 63 // generation. | 64 // generation. |
| 64 static void SetEntropySource(EntropySource source); | 65 static void SetEntropySource(EntropySource source); |
| 65 // Support for return-address rewriting profilers. | 66 // Support for return-address rewriting profilers. |
| 66 static void SetReturnAddressLocationResolver( | 67 static void SetReturnAddressLocationResolver( |
| 67 ReturnAddressLocationResolver resolver); | 68 ReturnAddressLocationResolver resolver); |
| 68 // Support for entry hooking JITed code. | 69 // Support for entry hooking JITed code. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 | 98 |
| 98 // JavaScript defines two kinds of 'nil'. | 99 // JavaScript defines two kinds of 'nil'. |
| 99 enum NilValue { kNullValue, kUndefinedValue }; | 100 enum NilValue { kNullValue, kUndefinedValue }; |
| 100 | 101 |
| 101 | 102 |
| 102 } } // namespace v8::internal | 103 } } // namespace v8::internal |
| 103 | 104 |
| 104 #endif // V8_V8_H_ | 105 #endif // V8_V8_H_ |
| OLD | NEW |