| OLD | NEW |
| 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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 : entry_count(1), | 1064 : entry_count(1), |
| 1065 previous_thread_data(previous_thread_data), | 1065 previous_thread_data(previous_thread_data), |
| 1066 previous_isolate(previous_isolate), | 1066 previous_isolate(previous_isolate), |
| 1067 previous_item(previous_item) { } | 1067 previous_item(previous_item) { } |
| 1068 | 1068 |
| 1069 int entry_count; | 1069 int entry_count; |
| 1070 PerIsolateThreadData* previous_thread_data; | 1070 PerIsolateThreadData* previous_thread_data; |
| 1071 Isolate* previous_isolate; | 1071 Isolate* previous_isolate; |
| 1072 EntryStackItem* previous_item; | 1072 EntryStackItem* previous_item; |
| 1073 | 1073 |
| 1074 private: |
| 1074 DISALLOW_COPY_AND_ASSIGN(EntryStackItem); | 1075 DISALLOW_COPY_AND_ASSIGN(EntryStackItem); |
| 1075 }; | 1076 }; |
| 1076 | 1077 |
| 1077 // This mutex protects highest_thread_id_, thread_data_table_ and | 1078 // This mutex protects highest_thread_id_, thread_data_table_ and |
| 1078 // default_isolate_. | 1079 // default_isolate_. |
| 1079 static Mutex* process_wide_mutex_; | 1080 static Mutex* process_wide_mutex_; |
| 1080 | 1081 |
| 1081 static Thread::LocalStorageKey per_isolate_thread_data_key_; | 1082 static Thread::LocalStorageKey per_isolate_thread_data_key_; |
| 1082 static Thread::LocalStorageKey isolate_key_; | 1083 static Thread::LocalStorageKey isolate_key_; |
| 1083 static Thread::LocalStorageKey thread_id_key_; | 1084 static Thread::LocalStorageKey thread_id_key_; |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 | 1391 |
| 1391 // Mark the global context with out of memory. | 1392 // Mark the global context with out of memory. |
| 1392 inline void Context::mark_out_of_memory() { | 1393 inline void Context::mark_out_of_memory() { |
| 1393 global_context()->set_out_of_memory(HEAP->true_value()); | 1394 global_context()->set_out_of_memory(HEAP->true_value()); |
| 1394 } | 1395 } |
| 1395 | 1396 |
| 1396 | 1397 |
| 1397 } } // namespace v8::internal | 1398 } } // namespace v8::internal |
| 1398 | 1399 |
| 1399 #endif // V8_ISOLATE_H_ | 1400 #endif // V8_ISOLATE_H_ |
| OLD | NEW |