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