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 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2009 write_iterator_ = new ConsStringIteratorOp(); | 2009 write_iterator_ = new ConsStringIteratorOp(); |
2010 global_handles_ = new GlobalHandles(this); | 2010 global_handles_ = new GlobalHandles(this); |
2011 bootstrapper_ = new Bootstrapper(this); | 2011 bootstrapper_ = new Bootstrapper(this); |
2012 handle_scope_implementer_ = new HandleScopeImplementer(this); | 2012 handle_scope_implementer_ = new HandleScopeImplementer(this); |
2013 stub_cache_ = new StubCache(this, runtime_zone()); | 2013 stub_cache_ = new StubCache(this, runtime_zone()); |
2014 regexp_stack_ = new RegExpStack(); | 2014 regexp_stack_ = new RegExpStack(); |
2015 regexp_stack_->isolate_ = this; | 2015 regexp_stack_->isolate_ = this; |
2016 date_cache_ = new DateCache(); | 2016 date_cache_ = new DateCache(); |
2017 code_stub_interface_descriptors_ = | 2017 code_stub_interface_descriptors_ = |
2018 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS]; | 2018 new CodeStubInterfaceDescriptor[CodeStub::NUMBER_OF_IDS]; |
2019 memset(code_stub_interface_descriptors_, 0, | |
2020 kPointerSize * CodeStub::NUMBER_OF_IDS); | |
2021 | 2019 |
2022 // Enable logging before setting up the heap | 2020 // Enable logging before setting up the heap |
2023 logger_->SetUp(); | 2021 logger_->SetUp(); |
2024 | 2022 |
2025 CpuProfiler::SetUp(); | 2023 CpuProfiler::SetUp(); |
2026 HeapProfiler::SetUp(); | 2024 HeapProfiler::SetUp(); |
2027 | 2025 |
2028 // Initialize other runtime facilities | 2026 // Initialize other runtime facilities |
2029 #if defined(USE_SIMULATOR) | 2027 #if defined(USE_SIMULATOR) |
2030 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS) | 2028 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS) |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2281 | 2279 |
2282 #ifdef DEBUG | 2280 #ifdef DEBUG |
2283 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2281 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2284 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2282 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2285 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2283 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2286 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2284 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2287 #undef ISOLATE_FIELD_OFFSET | 2285 #undef ISOLATE_FIELD_OFFSET |
2288 #endif | 2286 #endif |
2289 | 2287 |
2290 } } // namespace v8::internal | 2288 } } // namespace v8::internal |
OLD | NEW |