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 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 PrintF("Isolate %p (id %d)" #tag "\n", \ | 1517 PrintF("Isolate %p (id %d)" #tag "\n", \ |
1518 reinterpret_cast<void*>(this), id()); \ | 1518 reinterpret_cast<void*>(this), id()); \ |
1519 } \ | 1519 } \ |
1520 } while (false) | 1520 } while (false) |
1521 #else | 1521 #else |
1522 #define TRACE_ISOLATE(tag) | 1522 #define TRACE_ISOLATE(tag) |
1523 #endif | 1523 #endif |
1524 | 1524 |
1525 | 1525 |
1526 Isolate::Isolate() | 1526 Isolate::Isolate() |
1527 : state_(UNINITIALIZED), | 1527 : embedder_data_(), |
1528 embedder_data_(NULL), | 1528 state_(UNINITIALIZED), |
1529 entry_stack_(NULL), | 1529 entry_stack_(NULL), |
1530 stack_trace_nesting_level_(0), | 1530 stack_trace_nesting_level_(0), |
1531 incomplete_message_(NULL), | 1531 incomplete_message_(NULL), |
1532 bootstrapper_(NULL), | 1532 bootstrapper_(NULL), |
1533 runtime_profiler_(NULL), | 1533 runtime_profiler_(NULL), |
1534 compilation_cache_(NULL), | 1534 compilation_cache_(NULL), |
1535 counters_(NULL), | 1535 counters_(NULL), |
1536 code_range_(NULL), | 1536 code_range_(NULL), |
1537 debugger_initialized_(false), | 1537 debugger_initialized_(false), |
1538 logger_(NULL), | 1538 logger_(NULL), |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2310 | 2310 |
2311 #ifdef DEBUG | 2311 #ifdef DEBUG |
2312 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2312 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2313 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2313 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2314 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2314 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2315 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2315 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2316 #undef ISOLATE_FIELD_OFFSET | 2316 #undef ISOLATE_FIELD_OFFSET |
2317 #endif | 2317 #endif |
2318 | 2318 |
2319 } } // namespace v8::internal | 2319 } } // namespace v8::internal |
OLD | NEW |