| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // Generated code scratch locations. | 112 // Generated code scratch locations. |
| 113 int32_t formal_count_; | 113 int32_t formal_count_; |
| 114 | 114 |
| 115 // Call back function to report unsafe JS accesses. | 115 // Call back function to report unsafe JS accesses. |
| 116 v8::FailedAccessCheckCallback failed_access_check_callback_; | 116 v8::FailedAccessCheckCallback failed_access_check_callback_; |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 Address try_catch_handler_address_; | 119 Address try_catch_handler_address_; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #if defined(V8_TARGET_ARCH_ARM) |
| 123 |
| 124 #define ISOLATE_PLATFORM_INIT_LIST(V) \ |
| 125 /* VirtualFrame::SpilledScope state */ \ |
| 126 V(bool, is_virtual_frame_in_spilled_scope, false) |
| 127 |
| 128 #else |
| 129 |
| 130 #define ISOLATE_PLATFORM_INIT_LIST(V) |
| 131 |
| 132 #endif |
| 133 |
| 122 #define ISOLATE_INIT_ARRAY_LIST(V) \ | 134 #define ISOLATE_INIT_ARRAY_LIST(V) \ |
| 123 /* SerializerDeserializer state. */ \ | 135 /* SerializerDeserializer state. */ \ |
| 124 V(Object*, serialize_partial_snapshot_cache, kPartialSnapshotCacheCapacity) | 136 V(Object*, serialize_partial_snapshot_cache, kPartialSnapshotCacheCapacity) |
| 125 | 137 |
| 126 #define ISOLATE_INIT_LIST(V) \ | 138 #define ISOLATE_INIT_LIST(V) \ |
| 127 /* AssertNoZoneAllocation state. */ \ | 139 /* AssertNoZoneAllocation state. */ \ |
| 128 V(bool, zone_allow_allocation, true) \ | 140 V(bool, zone_allow_allocation, true) \ |
| 129 /* SerializerDeserializer state. */ \ | 141 /* SerializerDeserializer state. */ \ |
| 130 V(int, serialize_partial_snapshot_cache_length, 0) | 142 V(int, serialize_partial_snapshot_cache_length, 0) \ |
| 143 ISOLATE_PLATFORM_INIT_LIST(V) |
| 131 | 144 |
| 132 class Isolate { | 145 class Isolate { |
| 133 public: | 146 public: |
| 134 ~Isolate(); | 147 ~Isolate(); |
| 135 | 148 |
| 136 // Returns the single global isolate. | 149 // Returns the single global isolate. |
| 137 static Isolate* Current() { | 150 static Isolate* Current() { |
| 138 ASSERT(global_isolate != NULL); | 151 ASSERT(global_isolate != NULL); |
| 139 return global_isolate; | 152 return global_isolate; |
| 140 } | 153 } |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 312 |
| 300 | 313 |
| 301 // Temporary macro to be used to flag classes that are completely converted | 314 // Temporary macro to be used to flag classes that are completely converted |
| 302 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is | 315 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is |
| 303 // correct. | 316 // correct. |
| 304 #define ISOLATED_CLASS class | 317 #define ISOLATED_CLASS class |
| 305 | 318 |
| 306 } } // namespace v8::internal | 319 } } // namespace v8::internal |
| 307 | 320 |
| 308 #endif // V8_ISOLATE_H_ | 321 #endif // V8_ISOLATE_H_ |
| OLD | NEW |