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

Side by Side Diff: src/v8.h

Issue 900793004: Correctly report some internal OOM conditions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/heap/store-buffer.cc ('k') | no next file » | 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/heap/store-buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698