OLD | NEW |
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 <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 V(Redirection*, simulator_redirection, NULL) | 345 V(Redirection*, simulator_redirection, NULL) |
346 #else | 346 #else |
347 | 347 |
348 #define ISOLATE_INIT_SIMULATOR_LIST(V) | 348 #define ISOLATE_INIT_SIMULATOR_LIST(V) |
349 | 349 |
350 #endif | 350 #endif |
351 | 351 |
352 | 352 |
353 #ifdef DEBUG | 353 #ifdef DEBUG |
354 | 354 |
355 #define ISOLATE_INIT_DEBUG_ARRAY_LIST(V) \ | 355 #define ISOLATE_INIT_DEBUG_ARRAY_LIST(V) \ |
356 V(CommentStatistic, paged_space_comments_statistics, \ | 356 V(CommentStatistic, paged_space_comments_statistics, \ |
357 CommentStatistic::kMaxComments + 1) \ | 357 CommentStatistic::kMaxComments + 1) \ |
358 V(int, code_kind_statistics, Code::NUMBER_OF_KINDS) | 358 V(int, code_kind_statistics, AbstractCode::NUMBER_OF_KINDS) |
359 #else | 359 #else |
360 | 360 |
361 #define ISOLATE_INIT_DEBUG_ARRAY_LIST(V) | 361 #define ISOLATE_INIT_DEBUG_ARRAY_LIST(V) |
362 | 362 |
363 #endif | 363 #endif |
364 | 364 |
365 #define ISOLATE_INIT_ARRAY_LIST(V) \ | 365 #define ISOLATE_INIT_ARRAY_LIST(V) \ |
366 /* SerializerDeserializer state. */ \ | 366 /* SerializerDeserializer state. */ \ |
367 V(int32_t, jsregexp_static_offsets_vector, kJSRegexpStaticOffsetsVectorSize) \ | 367 V(int32_t, jsregexp_static_offsets_vector, kJSRegexpStaticOffsetsVectorSize) \ |
368 V(int, bad_char_shift_table, kUC16AlphabetSize) \ | 368 V(int, bad_char_shift_table, kUC16AlphabetSize) \ |
(...skipping 22 matching lines...) Expand all Loading... |
391 V(HashMap*, root_index_map, NULL) \ | 391 V(HashMap*, root_index_map, NULL) \ |
392 V(int, pending_microtask_count, 0) \ | 392 V(int, pending_microtask_count, 0) \ |
393 V(HStatistics*, hstatistics, NULL) \ | 393 V(HStatistics*, hstatistics, NULL) \ |
394 V(CompilationStatistics*, turbo_statistics, NULL) \ | 394 V(CompilationStatistics*, turbo_statistics, NULL) \ |
395 V(HTracer*, htracer, NULL) \ | 395 V(HTracer*, htracer, NULL) \ |
396 V(CodeTracer*, code_tracer, NULL) \ | 396 V(CodeTracer*, code_tracer, NULL) \ |
397 V(bool, fp_stubs_generated, false) \ | 397 V(bool, fp_stubs_generated, false) \ |
398 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ | 398 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ |
399 V(PromiseRejectCallback, promise_reject_callback, NULL) \ | 399 V(PromiseRejectCallback, promise_reject_callback, NULL) \ |
400 V(const v8::StartupData*, snapshot_blob, NULL) \ | 400 V(const v8::StartupData*, snapshot_blob, NULL) \ |
| 401 V(int, code_and_metadata_size, 0) \ |
| 402 V(int, bytecode_and_metadata_size, 0) \ |
401 ISOLATE_INIT_SIMULATOR_LIST(V) | 403 ISOLATE_INIT_SIMULATOR_LIST(V) |
402 | 404 |
403 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ | 405 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ |
404 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ | 406 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ |
405 inline type name() const { return thread_local_top_.name##_; } | 407 inline type name() const { return thread_local_top_.name##_; } |
406 | 408 |
407 #define THREAD_LOCAL_TOP_ADDRESS(type, name) \ | 409 #define THREAD_LOCAL_TOP_ADDRESS(type, name) \ |
408 type* name##_address() { return &thread_local_top_.name##_; } | 410 type* name##_address() { return &thread_local_top_.name##_; } |
409 | 411 |
410 | 412 |
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1593 | 1595 |
1594 EmbeddedVector<char, 128> filename_; | 1596 EmbeddedVector<char, 128> filename_; |
1595 FILE* file_; | 1597 FILE* file_; |
1596 int scope_depth_; | 1598 int scope_depth_; |
1597 }; | 1599 }; |
1598 | 1600 |
1599 } // namespace internal | 1601 } // namespace internal |
1600 } // namespace v8 | 1602 } // namespace v8 |
1601 | 1603 |
1602 #endif // V8_ISOLATE_H_ | 1604 #endif // V8_ISOLATE_H_ |
OLD | NEW |