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 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 } | 2044 } |
2045 } | 2045 } |
2046 } | 2046 } |
2047 | 2047 |
2048 | 2048 |
2049 void Isolate::InitializeLoggingAndCounters() { | 2049 void Isolate::InitializeLoggingAndCounters() { |
2050 if (logger_ == NULL) { | 2050 if (logger_ == NULL) { |
2051 logger_ = new Logger(this); | 2051 logger_ = new Logger(this); |
2052 } | 2052 } |
2053 if (counters_ == NULL) { | 2053 if (counters_ == NULL) { |
2054 counters_ = new Counters; | 2054 counters_ = new Counters(this); |
2055 } | 2055 } |
2056 } | 2056 } |
2057 | 2057 |
2058 | 2058 |
2059 void Isolate::InitializeDebugger() { | 2059 void Isolate::InitializeDebugger() { |
2060 #ifdef ENABLE_DEBUGGER_SUPPORT | 2060 #ifdef ENABLE_DEBUGGER_SUPPORT |
2061 ScopedLock lock(debugger_access_); | 2061 ScopedLock lock(debugger_access_); |
2062 if (NoBarrier_Load(&debugger_initialized_)) return; | 2062 if (NoBarrier_Load(&debugger_initialized_)) return; |
2063 InitializeLoggingAndCounters(); | 2063 InitializeLoggingAndCounters(); |
2064 debug_ = new Debug(this); | 2064 debug_ = new Debug(this); |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2450 | 2450 |
2451 #ifdef DEBUG | 2451 #ifdef DEBUG |
2452 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2452 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2453 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2453 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2454 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2454 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2455 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2455 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2456 #undef ISOLATE_FIELD_OFFSET | 2456 #undef ISOLATE_FIELD_OFFSET |
2457 #endif | 2457 #endif |
2458 | 2458 |
2459 } } // namespace v8::internal | 2459 } } // namespace v8::internal |
OLD | NEW |