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