OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include "include/v8-debug.h" | 9 #include "include/v8-debug.h" |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // the external callback we're currently in | 306 // the external callback we're currently in |
307 ExternalCallbackScope* external_callback_scope_; | 307 ExternalCallbackScope* external_callback_scope_; |
308 StateTag current_vm_state_; | 308 StateTag current_vm_state_; |
309 | 309 |
310 // Generated code scratch locations. | 310 // Generated code scratch locations. |
311 int32_t formal_count_; | 311 int32_t formal_count_; |
312 | 312 |
313 // Call back function to report unsafe JS accesses. | 313 // Call back function to report unsafe JS accesses. |
314 v8::FailedAccessCheckCallback failed_access_check_callback_; | 314 v8::FailedAccessCheckCallback failed_access_check_callback_; |
315 | 315 |
316 // Head of the list of live LookupResults. | |
317 LookupResult* top_lookup_result_; | |
318 | |
319 private: | 316 private: |
320 void InitializeInternal(); | 317 void InitializeInternal(); |
321 | 318 |
322 v8::TryCatch* try_catch_handler_; | 319 v8::TryCatch* try_catch_handler_; |
323 }; | 320 }; |
324 | 321 |
325 | 322 |
326 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ | 323 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ |
327 V8_TARGET_ARCH_ARM64 && !defined(__aarch64__) || \ | 324 V8_TARGET_ARCH_ARM64 && !defined(__aarch64__) || \ |
328 V8_TARGET_ARCH_PPC && !defined(__PPC__) || \ | 325 V8_TARGET_ARCH_PPC && !defined(__PPC__) || \ |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 | 998 |
1002 void SetData(uint32_t slot, void* data) { | 999 void SetData(uint32_t slot, void* data) { |
1003 DCHECK(slot < Internals::kNumIsolateDataSlots); | 1000 DCHECK(slot < Internals::kNumIsolateDataSlots); |
1004 embedder_data_[slot] = data; | 1001 embedder_data_[slot] = data; |
1005 } | 1002 } |
1006 void* GetData(uint32_t slot) { | 1003 void* GetData(uint32_t slot) { |
1007 DCHECK(slot < Internals::kNumIsolateDataSlots); | 1004 DCHECK(slot < Internals::kNumIsolateDataSlots); |
1008 return embedder_data_[slot]; | 1005 return embedder_data_[slot]; |
1009 } | 1006 } |
1010 | 1007 |
1011 THREAD_LOCAL_TOP_ACCESSOR(LookupResult*, top_lookup_result) | |
1012 | |
1013 bool serializer_enabled() const { return serializer_enabled_; } | 1008 bool serializer_enabled() const { return serializer_enabled_; } |
1014 | 1009 |
1015 bool IsDead() { return has_fatal_error_; } | 1010 bool IsDead() { return has_fatal_error_; } |
1016 void SignalFatalError() { has_fatal_error_ = true; } | 1011 void SignalFatalError() { has_fatal_error_ = true; } |
1017 | 1012 |
1018 bool use_crankshaft() const; | 1013 bool use_crankshaft() const; |
1019 | 1014 |
1020 bool initialized_from_snapshot() { return initialized_from_snapshot_; } | 1015 bool initialized_from_snapshot() { return initialized_from_snapshot_; } |
1021 | 1016 |
1022 double time_millis_since_init() { | 1017 double time_millis_since_init() { |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1586 } | 1581 } |
1587 | 1582 |
1588 EmbeddedVector<char, 128> filename_; | 1583 EmbeddedVector<char, 128> filename_; |
1589 FILE* file_; | 1584 FILE* file_; |
1590 int scope_depth_; | 1585 int scope_depth_; |
1591 }; | 1586 }; |
1592 | 1587 |
1593 } } // namespace v8::internal | 1588 } } // namespace v8::internal |
1594 | 1589 |
1595 #endif // V8_ISOLATE_H_ | 1590 #endif // V8_ISOLATE_H_ |
OLD | NEW |