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

Side by Side Diff: src/isolate.h

Issue 142813003: A64: Synchronize with r15358. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/ic.cc ('k') | src/isolate.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 V(Relocatable*, relocatable_top, NULL) \ 363 V(Relocatable*, relocatable_top, NULL) \
364 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ 364 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \
365 V(Object*, string_stream_current_security_token, NULL) \ 365 V(Object*, string_stream_current_security_token, NULL) \
366 /* TODO(isolates): Release this on destruction? */ \ 366 /* TODO(isolates): Release this on destruction? */ \
367 V(int*, irregexp_interpreter_backtrack_stack_cache, NULL) \ 367 V(int*, irregexp_interpreter_backtrack_stack_cache, NULL) \
368 /* Serializer state. */ \ 368 /* Serializer state. */ \
369 V(ExternalReferenceTable*, external_reference_table, NULL) \ 369 V(ExternalReferenceTable*, external_reference_table, NULL) \
370 /* AstNode state. */ \ 370 /* AstNode state. */ \
371 V(int, ast_node_id, 0) \ 371 V(int, ast_node_id, 0) \
372 V(unsigned, ast_node_count, 0) \ 372 V(unsigned, ast_node_count, 0) \
373 /* SafeStackFrameIterator activations count. */ \
374 V(int, safe_stack_iterator_counter, 0) \
375 V(bool, observer_delivery_pending, false) \ 373 V(bool, observer_delivery_pending, false) \
376 V(HStatistics*, hstatistics, NULL) \ 374 V(HStatistics*, hstatistics, NULL) \
377 V(HTracer*, htracer, NULL) \ 375 V(HTracer*, htracer, NULL) \
378 ISOLATE_DEBUGGER_INIT_LIST(V) 376 ISOLATE_DEBUGGER_INIT_LIST(V)
379 377
380 class Isolate { 378 class Isolate {
381 // These forward declarations are required to make the friend declarations in 379 // These forward declarations are required to make the friend declarations in
382 // PerIsolateThreadData work on some older versions of gcc. 380 // PerIsolateThreadData work on some older versions of gcc.
383 class ThreadDataTable; 381 class ThreadDataTable;
384 class EntryStackItem; 382 class EntryStackItem;
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 return descriptor_lookup_cache_; 890 return descriptor_lookup_cache_;
893 } 891 }
894 892
895 v8::ImplementationUtilities::HandleScopeData* handle_scope_data() { 893 v8::ImplementationUtilities::HandleScopeData* handle_scope_data() {
896 return &handle_scope_data_; 894 return &handle_scope_data_;
897 } 895 }
898 HandleScopeImplementer* handle_scope_implementer() { 896 HandleScopeImplementer* handle_scope_implementer() {
899 ASSERT(handle_scope_implementer_); 897 ASSERT(handle_scope_implementer_);
900 return handle_scope_implementer_; 898 return handle_scope_implementer_;
901 } 899 }
902 Zone* runtime_zone() { return &runtime_zone_; }
903 900
904 UnicodeCache* unicode_cache() { 901 UnicodeCache* unicode_cache() {
905 return unicode_cache_; 902 return unicode_cache_;
906 } 903 }
907 904
908 InnerPointerToCodeCache* inner_pointer_to_code_cache() { 905 InnerPointerToCodeCache* inner_pointer_to_code_cache() {
909 return inner_pointer_to_code_cache_; 906 return inner_pointer_to_code_cache_;
910 } 907 }
911 908
912 ConsStringIteratorOp* write_iterator() { return write_iterator_; } 909 ConsStringIteratorOp* write_iterator() { return write_iterator_; }
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 return sweeper_thread_; 1103 return sweeper_thread_;
1107 } 1104 }
1108 1105
1109 CallbackTable* callback_table() { 1106 CallbackTable* callback_table() {
1110 return callback_table_; 1107 return callback_table_;
1111 } 1108 }
1112 void set_callback_table(CallbackTable* callback_table) { 1109 void set_callback_table(CallbackTable* callback_table) {
1113 callback_table_ = callback_table; 1110 callback_table_ = callback_table;
1114 } 1111 }
1115 1112
1113 int id() const { return static_cast<int>(id_); }
1114
1116 HStatistics* GetHStatistics(); 1115 HStatistics* GetHStatistics();
1117 HTracer* GetHTracer(); 1116 HTracer* GetHTracer();
1118 1117
1119 private: 1118 private:
1120 Isolate(); 1119 Isolate();
1121 1120
1122 int id() const { return static_cast<int>(id_); }
1123
1124 friend struct GlobalState; 1121 friend struct GlobalState;
1125 friend struct InitializeGlobalState; 1122 friend struct InitializeGlobalState;
1126 1123
1127 enum State { 1124 enum State {
1128 UNINITIALIZED, // Some components may not have been allocated. 1125 UNINITIALIZED, // Some components may not have been allocated.
1129 INITIALIZED // All components are fully initialized. 1126 INITIALIZED // All components are fully initialized.
1130 }; 1127 };
1131 1128
1132 // These fields are accessed through the API, offsets must be kept in sync 1129 // These fields are accessed through the API, offsets must be kept in sync
1133 // with v8::internal::Internals (in include/v8.h) constants. This is also 1130 // with v8::internal::Internals (in include/v8.h) constants. This is also
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 int stack_trace_for_uncaught_exceptions_frame_limit_; 1258 int stack_trace_for_uncaught_exceptions_frame_limit_;
1262 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; 1259 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_;
1263 TranscendentalCache* transcendental_cache_; 1260 TranscendentalCache* transcendental_cache_;
1264 MemoryAllocator* memory_allocator_; 1261 MemoryAllocator* memory_allocator_;
1265 KeyedLookupCache* keyed_lookup_cache_; 1262 KeyedLookupCache* keyed_lookup_cache_;
1266 ContextSlotCache* context_slot_cache_; 1263 ContextSlotCache* context_slot_cache_;
1267 DescriptorLookupCache* descriptor_lookup_cache_; 1264 DescriptorLookupCache* descriptor_lookup_cache_;
1268 v8::ImplementationUtilities::HandleScopeData handle_scope_data_; 1265 v8::ImplementationUtilities::HandleScopeData handle_scope_data_;
1269 HandleScopeImplementer* handle_scope_implementer_; 1266 HandleScopeImplementer* handle_scope_implementer_;
1270 UnicodeCache* unicode_cache_; 1267 UnicodeCache* unicode_cache_;
1271 Zone runtime_zone_;
1272 PreallocatedStorage in_use_list_; 1268 PreallocatedStorage in_use_list_;
1273 PreallocatedStorage free_list_; 1269 PreallocatedStorage free_list_;
1274 bool preallocated_storage_preallocated_; 1270 bool preallocated_storage_preallocated_;
1275 InnerPointerToCodeCache* inner_pointer_to_code_cache_; 1271 InnerPointerToCodeCache* inner_pointer_to_code_cache_;
1276 ConsStringIteratorOp* write_iterator_; 1272 ConsStringIteratorOp* write_iterator_;
1277 GlobalHandles* global_handles_; 1273 GlobalHandles* global_handles_;
1278 ContextSwitcher* context_switcher_; 1274 ContextSwitcher* context_switcher_;
1279 ThreadManager* thread_manager_; 1275 ThreadManager* thread_manager_;
1280 RuntimeState runtime_state_; 1276 RuntimeState runtime_state_;
1281 bool fp_stubs_generated_; 1277 bool fp_stubs_generated_;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 1494
1499 // Mark the native context with out of memory. 1495 // Mark the native context with out of memory.
1500 inline void Context::mark_out_of_memory() { 1496 inline void Context::mark_out_of_memory() {
1501 native_context()->set_out_of_memory(HEAP->true_value()); 1497 native_context()->set_out_of_memory(HEAP->true_value());
1502 } 1498 }
1503 1499
1504 1500
1505 } } // namespace v8::internal 1501 } } // namespace v8::internal
1506 1502
1507 #endif // V8_ISOLATE_H_ 1503 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698