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

Side by Side Diff: src/isolate.h

Issue 2066993004: [snapshot] serialize embedder-provided external references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comment Created 4 years, 6 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/heap-inl.h ('k') | test/cctest/test-serialize.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 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 /* SerializerDeserializer state. */ \ 389 /* SerializerDeserializer state. */ \
390 V(int32_t, jsregexp_static_offsets_vector, kJSRegexpStaticOffsetsVectorSize) \ 390 V(int32_t, jsregexp_static_offsets_vector, kJSRegexpStaticOffsetsVectorSize) \
391 V(int, bad_char_shift_table, kUC16AlphabetSize) \ 391 V(int, bad_char_shift_table, kUC16AlphabetSize) \
392 V(int, good_suffix_shift_table, (kBMMaxShift + 1)) \ 392 V(int, good_suffix_shift_table, (kBMMaxShift + 1)) \
393 V(int, suffix_table, (kBMMaxShift + 1)) \ 393 V(int, suffix_table, (kBMMaxShift + 1)) \
394 V(uint32_t, private_random_seed, 2) \ 394 V(uint32_t, private_random_seed, 2) \
395 ISOLATE_INIT_DEBUG_ARRAY_LIST(V) 395 ISOLATE_INIT_DEBUG_ARRAY_LIST(V)
396 396
397 typedef List<HeapObject*> DebugObjectCache; 397 typedef List<HeapObject*> DebugObjectCache;
398 398
399 #define ISOLATE_INIT_LIST(V) \ 399 #define ISOLATE_INIT_LIST(V) \
400 /* Assembler state. */ \ 400 /* Assembler state. */ \
401 V(FatalErrorCallback, exception_behavior, NULL) \ 401 V(FatalErrorCallback, exception_behavior, nullptr) \
402 V(LogEventCallback, event_logger, NULL) \ 402 V(LogEventCallback, event_logger, nullptr) \
403 V(AllowCodeGenerationFromStringsCallback, allow_code_gen_callback, NULL) \ 403 V(AllowCodeGenerationFromStringsCallback, allow_code_gen_callback, nullptr) \
404 /* To distinguish the function templates, so that we can find them in the */ \ 404 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, \
405 /* function cache of the native context. */ \ 405 nullptr) \
406 V(int, next_serial_number, 0) \ 406 /* State for Relocatable. */ \
407 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, NULL) \ 407 V(Relocatable*, relocatable_top, nullptr) \
408 /* State for Relocatable. */ \ 408 V(DebugObjectCache*, string_stream_debug_object_cache, nullptr) \
409 V(Relocatable*, relocatable_top, NULL) \ 409 V(Object*, string_stream_current_security_token, nullptr) \
410 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ 410 V(ExternalReferenceTable*, external_reference_table, nullptr) \
411 V(Object*, string_stream_current_security_token, NULL) \ 411 V(intptr_t*, api_external_references, nullptr) \
412 V(ExternalReferenceTable*, external_reference_table, NULL) \ 412 V(base::HashMap*, external_reference_map, nullptr) \
413 V(base::HashMap*, external_reference_map, NULL) \ 413 V(base::HashMap*, root_index_map, nullptr) \
414 V(base::HashMap*, root_index_map, NULL) \ 414 V(int, pending_microtask_count, 0) \
415 V(int, pending_microtask_count, 0) \ 415 V(HStatistics*, hstatistics, nullptr) \
416 V(HStatistics*, hstatistics, NULL) \ 416 V(CompilationStatistics*, turbo_statistics, nullptr) \
417 V(CompilationStatistics*, turbo_statistics, NULL) \ 417 V(HTracer*, htracer, nullptr) \
418 V(HTracer*, htracer, NULL) \ 418 V(CodeTracer*, code_tracer, nullptr) \
419 V(CodeTracer*, code_tracer, NULL) \ 419 V(bool, fp_stubs_generated, false) \
420 V(bool, fp_stubs_generated, false) \ 420 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \
421 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ 421 V(PromiseRejectCallback, promise_reject_callback, nullptr) \
422 V(PromiseRejectCallback, promise_reject_callback, NULL) \ 422 V(const v8::StartupData*, snapshot_blob, nullptr) \
423 V(const v8::StartupData*, snapshot_blob, NULL) \ 423 V(int, code_and_metadata_size, 0) \
424 V(int, code_and_metadata_size, 0) \ 424 V(int, bytecode_and_metadata_size, 0) \
425 V(int, bytecode_and_metadata_size, 0) \ 425 /* true if being profiled. Causes collection of extra compile info. */ \
426 /* true if being profiled. Causes collection of extra compile info. */ \ 426 V(bool, is_profiling, false) \
427 V(bool, is_profiling, false) \
428 ISOLATE_INIT_SIMULATOR_LIST(V) 427 ISOLATE_INIT_SIMULATOR_LIST(V)
429 428
430 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ 429 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \
431 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ 430 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \
432 inline type name() const { return thread_local_top_.name##_; } 431 inline type name() const { return thread_local_top_.name##_; }
433 432
434 #define THREAD_LOCAL_TOP_ADDRESS(type, name) \ 433 #define THREAD_LOCAL_TOP_ADDRESS(type, name) \
435 type* name##_address() { return &thread_local_top_.name##_; } 434 type* name##_address() { return &thread_local_top_.name##_; }
436 435
437 436
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 1644
1646 EmbeddedVector<char, 128> filename_; 1645 EmbeddedVector<char, 128> filename_;
1647 FILE* file_; 1646 FILE* file_;
1648 int scope_depth_; 1647 int scope_depth_;
1649 }; 1648 };
1650 1649
1651 } // namespace internal 1650 } // namespace internal
1652 } // namespace v8 1651 } // namespace v8
1653 1652
1654 #endif // V8_ISOLATE_H_ 1653 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap/heap-inl.h ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698