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

Side by Side Diff: src/isolate.h

Issue 19500022: Reland "Flush parallel recompilation queues on context dispose notification." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comment addressed Created 7 years, 4 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/heap.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 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 void SetData(void* data) { embedder_data_ = data; } 1052 void SetData(void* data) { embedder_data_ = data; }
1053 void* GetData() { return embedder_data_; } 1053 void* GetData() { return embedder_data_; }
1054 1054
1055 LookupResult* top_lookup_result() { 1055 LookupResult* top_lookup_result() {
1056 return thread_local_top_.top_lookup_result_; 1056 return thread_local_top_.top_lookup_result_;
1057 } 1057 }
1058 void SetTopLookupResult(LookupResult* top) { 1058 void SetTopLookupResult(LookupResult* top) {
1059 thread_local_top_.top_lookup_result_ = top; 1059 thread_local_top_.top_lookup_result_ = top;
1060 } 1060 }
1061 1061
1062 bool context_exit_happened() {
1063 return context_exit_happened_;
1064 }
1065 void set_context_exit_happened(bool context_exit_happened) {
1066 context_exit_happened_ = context_exit_happened;
1067 }
1068
1069 bool initialized_from_snapshot() { return initialized_from_snapshot_; } 1062 bool initialized_from_snapshot() { return initialized_from_snapshot_; }
1070 1063
1071 double time_millis_since_init() { 1064 double time_millis_since_init() {
1072 return OS::TimeCurrentMillis() - time_millis_at_init_; 1065 return OS::TimeCurrentMillis() - time_millis_at_init_;
1073 } 1066 }
1074 1067
1075 DateCache* date_cache() { 1068 DateCache* date_cache() {
1076 return date_cache_; 1069 return date_cache_;
1077 } 1070 }
1078 1071
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 ConsStringIteratorOp objects_string_compare_iterator_a_; 1299 ConsStringIteratorOp objects_string_compare_iterator_a_;
1307 ConsStringIteratorOp objects_string_compare_iterator_b_; 1300 ConsStringIteratorOp objects_string_compare_iterator_b_;
1308 StaticResource<ConsStringIteratorOp> objects_string_iterator_; 1301 StaticResource<ConsStringIteratorOp> objects_string_iterator_;
1309 unibrow::Mapping<unibrow::Ecma262Canonicalize> 1302 unibrow::Mapping<unibrow::Ecma262Canonicalize>
1310 regexp_macro_assembler_canonicalize_; 1303 regexp_macro_assembler_canonicalize_;
1311 RegExpStack* regexp_stack_; 1304 RegExpStack* regexp_stack_;
1312 DateCache* date_cache_; 1305 DateCache* date_cache_;
1313 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; 1306 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
1314 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_; 1307 CodeStubInterfaceDescriptor* code_stub_interface_descriptors_;
1315 1308
1316 // The garbage collector should be a little more aggressive when it knows
1317 // that a context was recently exited.
1318 bool context_exit_happened_;
1319
1320 // True if this isolate was initialized from a snapshot. 1309 // True if this isolate was initialized from a snapshot.
1321 bool initialized_from_snapshot_; 1310 bool initialized_from_snapshot_;
1322 1311
1323 // Time stamp at initialization. 1312 // Time stamp at initialization.
1324 double time_millis_at_init_; 1313 double time_millis_at_init_;
1325 1314
1326 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1315 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1327 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1316 V8_TARGET_ARCH_MIPS && !defined(__mips__)
1328 bool simulator_initialized_; 1317 bool simulator_initialized_;
1329 HashMap* simulator_i_cache_; 1318 HashMap* simulator_i_cache_;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 1512
1524 // Mark the native context with out of memory. 1513 // Mark the native context with out of memory.
1525 inline void Context::mark_out_of_memory() { 1514 inline void Context::mark_out_of_memory() {
1526 native_context()->set_out_of_memory(HEAP->true_value()); 1515 native_context()->set_out_of_memory(HEAP->true_value());
1527 } 1516 }
1528 1517
1529 1518
1530 } } // namespace v8::internal 1519 } } // namespace v8::internal
1531 1520
1532 #endif // V8_ISOLATE_H_ 1521 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698