| 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 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1557 use_crankshaft_(true), | 1557 use_crankshaft_(true), |
| 1558 initialized_from_snapshot_(false), | 1558 initialized_from_snapshot_(false), |
| 1559 cpu_profiler_(NULL), | 1559 cpu_profiler_(NULL), |
| 1560 heap_profiler_(NULL), | 1560 heap_profiler_(NULL), |
| 1561 function_entry_hook_(NULL), | 1561 function_entry_hook_(NULL), |
| 1562 deferred_handles_head_(NULL), | 1562 deferred_handles_head_(NULL), |
| 1563 optimizing_compiler_thread_(NULL), | 1563 optimizing_compiler_thread_(NULL), |
| 1564 sweeper_thread_(NULL), | 1564 sweeper_thread_(NULL), |
| 1565 num_sweeper_threads_(0), | 1565 num_sweeper_threads_(0), |
| 1566 max_available_threads_(0), | 1566 max_available_threads_(0), |
| 1567 stress_deopt_count_(0) { | 1567 stress_deopt_count_(0), |
| 1568 next_optimization_id_(0) { |
| 1568 id_ = NoBarrier_AtomicIncrement(&isolate_counter_, 1); | 1569 id_ = NoBarrier_AtomicIncrement(&isolate_counter_, 1); |
| 1569 TRACE_ISOLATE(constructor); | 1570 TRACE_ISOLATE(constructor); |
| 1570 | 1571 |
| 1571 memset(isolate_addresses_, 0, | 1572 memset(isolate_addresses_, 0, |
| 1572 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1)); | 1573 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1)); |
| 1573 | 1574 |
| 1574 heap_.isolate_ = this; | 1575 heap_.isolate_ = this; |
| 1575 stack_guard_.isolate_ = this; | 1576 stack_guard_.isolate_ = this; |
| 1576 | 1577 |
| 1577 // ThreadManager is initialized early to support locking an isolate | 1578 // ThreadManager is initialized early to support locking an isolate |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2311 | 2312 |
| 2312 #ifdef DEBUG | 2313 #ifdef DEBUG |
| 2313 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2314 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 2314 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2315 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 2315 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2316 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 2316 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2317 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 2317 #undef ISOLATE_FIELD_OFFSET | 2318 #undef ISOLATE_FIELD_OFFSET |
| 2318 #endif | 2319 #endif |
| 2319 | 2320 |
| 2320 } } // namespace v8::internal | 2321 } } // namespace v8::internal |
| OLD | NEW |