| 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 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1799 | 1799 |
| 1800 heap_.isolate_ = this; | 1800 heap_.isolate_ = this; |
| 1801 stack_guard_.isolate_ = this; | 1801 stack_guard_.isolate_ = this; |
| 1802 | 1802 |
| 1803 // ThreadManager is initialized early to support locking an isolate | 1803 // ThreadManager is initialized early to support locking an isolate |
| 1804 // before it is entered. | 1804 // before it is entered. |
| 1805 thread_manager_ = new ThreadManager(); | 1805 thread_manager_ = new ThreadManager(); |
| 1806 thread_manager_->isolate_ = this; | 1806 thread_manager_->isolate_ = this; |
| 1807 | 1807 |
| 1808 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ | 1808 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ |
| 1809 V8_TARGET_ARCH_A64 && !defined(__arm__) || \ | 1809 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \ |
| 1810 V8_TARGET_ARCH_MIPS && !defined(__mips__) | 1810 V8_TARGET_ARCH_MIPS && !defined(__mips__) |
| 1811 simulator_initialized_ = false; | 1811 simulator_initialized_ = false; |
| 1812 simulator_i_cache_ = NULL; | 1812 simulator_i_cache_ = NULL; |
| 1813 simulator_redirection_ = NULL; | 1813 simulator_redirection_ = NULL; |
| 1814 #endif | 1814 #endif |
| 1815 | 1815 |
| 1816 #ifdef DEBUG | 1816 #ifdef DEBUG |
| 1817 // heap_histograms_ initializes itself. | 1817 // heap_histograms_ initializes itself. |
| 1818 memset(&js_spill_information_, 0, sizeof(js_spill_information_)); | 1818 memset(&js_spill_information_, 0, sizeof(js_spill_information_)); |
| 1819 memset(code_kind_statistics_, 0, | 1819 memset(code_kind_statistics_, 0, |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2510 | 2510 |
| 2511 #ifdef DEBUG | 2511 #ifdef DEBUG |
| 2512 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2512 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 2513 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2513 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 2514 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2514 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 2515 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2515 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 2516 #undef ISOLATE_FIELD_OFFSET | 2516 #undef ISOLATE_FIELD_OFFSET |
| 2517 #endif | 2517 #endif |
| 2518 | 2518 |
| 2519 } } // namespace v8::internal | 2519 } } // namespace v8::internal |
| OLD | NEW |