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

Side by Side Diff: src/isolate.h

Issue 2139873002: V8: Add API to report OOM to embedder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
« src/api.cc ('K') | « src/api.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 V(int, good_suffix_shift_table, (kBMMaxShift + 1)) \ 391 V(int, good_suffix_shift_table, (kBMMaxShift + 1)) \
392 V(int, suffix_table, (kBMMaxShift + 1)) \ 392 V(int, suffix_table, (kBMMaxShift + 1)) \
393 V(uint32_t, private_random_seed, 2) \ 393 V(uint32_t, private_random_seed, 2) \
394 ISOLATE_INIT_DEBUG_ARRAY_LIST(V) 394 ISOLATE_INIT_DEBUG_ARRAY_LIST(V)
395 395
396 typedef List<HeapObject*> DebugObjectCache; 396 typedef List<HeapObject*> DebugObjectCache;
397 397
398 #define ISOLATE_INIT_LIST(V) \ 398 #define ISOLATE_INIT_LIST(V) \
399 /* Assembler state. */ \ 399 /* Assembler state. */ \
400 V(FatalErrorCallback, exception_behavior, nullptr) \ 400 V(FatalErrorCallback, exception_behavior, nullptr) \
401 V(OOMErrorCallback, oom_behavior, nullptr) \
401 V(LogEventCallback, event_logger, nullptr) \ 402 V(LogEventCallback, event_logger, nullptr) \
402 V(AllowCodeGenerationFromStringsCallback, allow_code_gen_callback, nullptr) \ 403 V(AllowCodeGenerationFromStringsCallback, allow_code_gen_callback, nullptr) \
403 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, \ 404 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, \
404 nullptr) \ 405 nullptr) \
405 /* State for Relocatable. */ \ 406 /* State for Relocatable. */ \
406 V(Relocatable*, relocatable_top, nullptr) \ 407 V(Relocatable*, relocatable_top, nullptr) \
407 V(DebugObjectCache*, string_stream_debug_object_cache, nullptr) \ 408 V(DebugObjectCache*, string_stream_debug_object_cache, nullptr) \
408 V(Object*, string_stream_current_security_token, nullptr) \ 409 V(Object*, string_stream_current_security_token, nullptr) \
409 V(ExternalReferenceTable*, external_reference_table, nullptr) \ 410 V(ExternalReferenceTable*, external_reference_table, nullptr) \
410 V(intptr_t*, api_external_references, nullptr) \ 411 V(intptr_t*, api_external_references, nullptr) \
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 1643
1643 EmbeddedVector<char, 128> filename_; 1644 EmbeddedVector<char, 128> filename_;
1644 FILE* file_; 1645 FILE* file_;
1645 int scope_depth_; 1646 int scope_depth_;
1646 }; 1647 };
1647 1648
1648 } // namespace internal 1649 } // namespace internal
1649 } // namespace v8 1650 } // namespace v8
1650 1651
1651 #endif // V8_ISOLATE_H_ 1652 #endif // V8_ISOLATE_H_
OLDNEW
« src/api.cc ('K') | « src/api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698