| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // Debug. | 79 // Debug. |
| 80 // Mutex for serializing access to break control structures. | 80 // Mutex for serializing access to break control structures. |
| 81 Mutex* break_access() { return break_access_; } | 81 Mutex* break_access() { return break_access_; } |
| 82 | 82 |
| 83 // Accessors. | 83 // Accessors. |
| 84 Bootstrapper* bootstrapper() { return bootstrapper_; } | 84 Bootstrapper* bootstrapper() { return bootstrapper_; } |
| 85 StackGuard* stack_guard() { return &stack_guard_; } | 85 StackGuard* stack_guard() { return &stack_guard_; } |
| 86 Heap* heap() { return &heap_; } | 86 Heap* heap() { return &heap_; } |
| 87 StubCache* stub_cache() { return stub_cache_; } | 87 StubCache* stub_cache() { return stub_cache_; } |
| 88 |
| 89 TranscendentalCache* transcendental_cache() const { |
| 90 return transcendental_cache_; |
| 91 } |
| 92 |
| 88 v8::ImplementationUtilities::HandleScopeData* handle_scope_data() { | 93 v8::ImplementationUtilities::HandleScopeData* handle_scope_data() { |
| 89 return &handle_scope_data_; | 94 return &handle_scope_data_; |
| 90 } | 95 } |
| 91 HandleScopeImplementer* handle_scope_implementer() { | 96 HandleScopeImplementer* handle_scope_implementer() { |
| 92 ASSERT(handle_scope_implementer_); | 97 ASSERT(handle_scope_implementer_); |
| 93 return handle_scope_implementer_; | 98 return handle_scope_implementer_; |
| 94 } | 99 } |
| 95 Zone* zone() { return &zone_; } | 100 Zone* zone() { return &zone_; } |
| 96 | 101 |
| 97 // SerializerDeserializer state. | 102 // SerializerDeserializer state. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 119 INITIALIZED // All components are fully initialized. | 124 INITIALIZED // All components are fully initialized. |
| 120 }; | 125 }; |
| 121 | 126 |
| 122 State state_; | 127 State state_; |
| 123 | 128 |
| 124 Bootstrapper* bootstrapper_; | 129 Bootstrapper* bootstrapper_; |
| 125 Mutex* break_access_; | 130 Mutex* break_access_; |
| 126 Heap heap_; | 131 Heap heap_; |
| 127 StackGuard stack_guard_; | 132 StackGuard stack_guard_; |
| 128 StubCache* stub_cache_; | 133 StubCache* stub_cache_; |
| 134 TranscendentalCache* transcendental_cache_; |
| 129 v8::ImplementationUtilities::HandleScopeData handle_scope_data_; | 135 v8::ImplementationUtilities::HandleScopeData handle_scope_data_; |
| 130 HandleScopeImplementer* handle_scope_implementer_; | 136 HandleScopeImplementer* handle_scope_implementer_; |
| 131 Zone zone_; | 137 Zone zone_; |
| 132 | 138 |
| 133 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ | 139 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ |
| 134 type name##_; | 140 type name##_; |
| 135 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) | 141 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) |
| 136 #undef GLOBAL_BACKING_STORE | 142 #undef GLOBAL_BACKING_STORE |
| 137 | 143 |
| 138 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ | 144 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 204 |
| 199 | 205 |
| 200 // Temporary macro to be used to flag classes that are completely converted | 206 // Temporary macro to be used to flag classes that are completely converted |
| 201 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is | 207 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is |
| 202 // correct. | 208 // correct. |
| 203 #define ISOLATED_CLASS class | 209 #define ISOLATED_CLASS class |
| 204 | 210 |
| 205 } } // namespace v8::internal | 211 } } // namespace v8::internal |
| 206 | 212 |
| 207 #endif // V8_ISOLATE_H_ | 213 #endif // V8_ISOLATE_H_ |
| OLD | NEW |