| 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 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 return sweeper_thread_; | 1100 return sweeper_thread_; |
| 1101 } | 1101 } |
| 1102 | 1102 |
| 1103 CallbackTable* callback_table() { | 1103 CallbackTable* callback_table() { |
| 1104 return callback_table_; | 1104 return callback_table_; |
| 1105 } | 1105 } |
| 1106 void set_callback_table(CallbackTable* callback_table) { | 1106 void set_callback_table(CallbackTable* callback_table) { |
| 1107 callback_table_ = callback_table; | 1107 callback_table_ = callback_table; |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 int id() const { return static_cast<int>(id_); } |
| 1111 |
| 1110 HStatistics* GetHStatistics(); | 1112 HStatistics* GetHStatistics(); |
| 1111 HTracer* GetHTracer(); | 1113 HTracer* GetHTracer(); |
| 1112 | 1114 |
| 1113 private: | 1115 private: |
| 1114 Isolate(); | 1116 Isolate(); |
| 1115 | 1117 |
| 1116 int id() const { return static_cast<int>(id_); } | |
| 1117 | |
| 1118 friend struct GlobalState; | 1118 friend struct GlobalState; |
| 1119 friend struct InitializeGlobalState; | 1119 friend struct InitializeGlobalState; |
| 1120 | 1120 |
| 1121 enum State { | 1121 enum State { |
| 1122 UNINITIALIZED, // Some components may not have been allocated. | 1122 UNINITIALIZED, // Some components may not have been allocated. |
| 1123 INITIALIZED // All components are fully initialized. | 1123 INITIALIZED // All components are fully initialized. |
| 1124 }; | 1124 }; |
| 1125 | 1125 |
| 1126 // These fields are accessed through the API, offsets must be kept in sync | 1126 // These fields are accessed through the API, offsets must be kept in sync |
| 1127 // with v8::internal::Internals (in include/v8.h) constants. This is also | 1127 // with v8::internal::Internals (in include/v8.h) constants. This is also |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 | 1491 |
| 1492 // Mark the native context with out of memory. | 1492 // Mark the native context with out of memory. |
| 1493 inline void Context::mark_out_of_memory() { | 1493 inline void Context::mark_out_of_memory() { |
| 1494 native_context()->set_out_of_memory(HEAP->true_value()); | 1494 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1495 } | 1495 } |
| 1496 | 1496 |
| 1497 | 1497 |
| 1498 } } // namespace v8::internal | 1498 } } // namespace v8::internal |
| 1499 | 1499 |
| 1500 #endif // V8_ISOLATE_H_ | 1500 #endif // V8_ISOLATE_H_ |
| OLD | NEW |