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 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2275 | 2275 |
2276 // Quiet the heap NaN if needed on target platform. | 2276 // Quiet the heap NaN if needed on target platform. |
2277 if (!create_heap_objects) Assembler::QuietNaN(heap_.nan_value()); | 2277 if (!create_heap_objects) Assembler::QuietNaN(heap_.nan_value()); |
2278 | 2278 |
2279 runtime_profiler_ = new RuntimeProfiler(this); | 2279 runtime_profiler_ = new RuntimeProfiler(this); |
2280 runtime_profiler_->SetUp(); | 2280 runtime_profiler_->SetUp(); |
2281 | 2281 |
2282 // If we are deserializing, log non-function code objects and compiled | 2282 // If we are deserializing, log non-function code objects and compiled |
2283 // functions found in the snapshot. | 2283 // functions found in the snapshot. |
2284 if (!create_heap_objects && | 2284 if (!create_heap_objects && |
2285 (FLAG_log_code || FLAG_ll_prof || logger_->is_logging_code_events())) { | 2285 (FLAG_log_code || |
| 2286 FLAG_ll_prof || |
| 2287 FLAG_perf_jit_prof || |
| 2288 FLAG_perf_basic_prof || |
| 2289 logger_->is_logging_code_events())) { |
2286 HandleScope scope(this); | 2290 HandleScope scope(this); |
2287 LOG(this, LogCodeObjects()); | 2291 LOG(this, LogCodeObjects()); |
2288 LOG(this, LogCompiledFunctions()); | 2292 LOG(this, LogCompiledFunctions()); |
2289 } | 2293 } |
2290 | 2294 |
2291 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), | 2295 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), |
2292 Internals::kIsolateEmbedderDataOffset); | 2296 Internals::kIsolateEmbedderDataOffset); |
2293 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), | 2297 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), |
2294 Internals::kIsolateRootsOffset); | 2298 Internals::kIsolateRootsOffset); |
2295 | 2299 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2522 | 2526 |
2523 #ifdef DEBUG | 2527 #ifdef DEBUG |
2524 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 2528 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
2525 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 2529 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
2526 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 2530 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
2527 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 2531 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
2528 #undef ISOLATE_FIELD_OFFSET | 2532 #undef ISOLATE_FIELD_OFFSET |
2529 #endif | 2533 #endif |
2530 | 2534 |
2531 } } // namespace v8::internal | 2535 } } // namespace v8::internal |
OLD | NEW |