| 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 "../include/v8-debug.h" | 8 #include "../include/v8-debug.h" |
| 9 #include "allocation.h" | 9 #include "allocation.h" |
| 10 #include "assert-scope.h" | 10 #include "assert-scope.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 template <StateTag Tag> class VMState; | 68 template <StateTag Tag> class VMState; |
| 69 | 69 |
| 70 // 'void function pointer', used to roundtrip the | 70 // 'void function pointer', used to roundtrip the |
| 71 // ExternalReference::ExternalReferenceRedirector since we can not include | 71 // ExternalReference::ExternalReferenceRedirector since we can not include |
| 72 // assembler.h, where it is defined, here. | 72 // assembler.h, where it is defined, here. |
| 73 typedef void* ExternalReferenceRedirectorPointer(); | 73 typedef void* ExternalReferenceRedirectorPointer(); |
| 74 | 74 |
| 75 | 75 |
| 76 class Debug; | 76 class Debug; |
| 77 class Debugger; | 77 class Debugger; |
| 78 class DebuggerAgent; | |
| 79 | 78 |
| 80 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ | 79 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ |
| 81 !defined(__aarch64__) && V8_TARGET_ARCH_ARM64 || \ | 80 !defined(__aarch64__) && V8_TARGET_ARCH_ARM64 || \ |
| 82 !defined(__mips__) && V8_TARGET_ARCH_MIPS | 81 !defined(__mips__) && V8_TARGET_ARCH_MIPS |
| 83 class Redirection; | 82 class Redirection; |
| 84 class Simulator; | 83 class Simulator; |
| 85 #endif | 84 #endif |
| 86 | 85 |
| 87 | 86 |
| 88 // Static indirection table for handles to constants. If a frame | 87 // Static indirection table for handles to constants. If a frame |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 V(int, ast_node_id, 0) \ | 350 V(int, ast_node_id, 0) \ |
| 352 V(unsigned, ast_node_count, 0) \ | 351 V(unsigned, ast_node_count, 0) \ |
| 353 V(bool, microtask_pending, false) \ | 352 V(bool, microtask_pending, false) \ |
| 354 V(bool, autorun_microtasks, true) \ | 353 V(bool, autorun_microtasks, true) \ |
| 355 V(HStatistics*, hstatistics, NULL) \ | 354 V(HStatistics*, hstatistics, NULL) \ |
| 356 V(HTracer*, htracer, NULL) \ | 355 V(HTracer*, htracer, NULL) \ |
| 357 V(CodeTracer*, code_tracer, NULL) \ | 356 V(CodeTracer*, code_tracer, NULL) \ |
| 358 V(bool, fp_stubs_generated, false) \ | 357 V(bool, fp_stubs_generated, false) \ |
| 359 V(int, max_available_threads, 0) \ | 358 V(int, max_available_threads, 0) \ |
| 360 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ | 359 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ |
| 361 V(DebuggerAgent*, debugger_agent_instance, NULL) \ | |
| 362 V(InterruptCallback, api_interrupt_callback, NULL) \ | 360 V(InterruptCallback, api_interrupt_callback, NULL) \ |
| 363 V(void*, api_interrupt_callback_data, NULL) \ | 361 V(void*, api_interrupt_callback_data, NULL) \ |
| 364 ISOLATE_INIT_SIMULATOR_LIST(V) | 362 ISOLATE_INIT_SIMULATOR_LIST(V) |
| 365 | 363 |
| 366 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ | 364 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ |
| 367 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ | 365 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ |
| 368 inline type name() const { return thread_local_top_.name##_; } | 366 inline type name() const { return thread_local_top_.name##_; } |
| 369 | 367 |
| 370 | 368 |
| 371 class Isolate { | 369 class Isolate { |
| (...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1481 } | 1479 } |
| 1482 | 1480 |
| 1483 EmbeddedVector<char, 128> filename_; | 1481 EmbeddedVector<char, 128> filename_; |
| 1484 FILE* file_; | 1482 FILE* file_; |
| 1485 int scope_depth_; | 1483 int scope_depth_; |
| 1486 }; | 1484 }; |
| 1487 | 1485 |
| 1488 } } // namespace v8::internal | 1486 } } // namespace v8::internal |
| 1489 | 1487 |
| 1490 #endif // V8_ISOLATE_H_ | 1488 #endif // V8_ISOLATE_H_ |
| OLD | NEW |