Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: src/isolate.cc

Issue 103293006: Remove outdated profiler flags (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove moar stuffs (per review feedback) Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ic.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1681 // We must stop the logger before we tear down other components. 1681 // We must stop the logger before we tear down other components.
1682 Sampler* sampler = logger_->sampler(); 1682 Sampler* sampler = logger_->sampler();
1683 if (sampler && sampler->IsActive()) sampler->Stop(); 1683 if (sampler && sampler->IsActive()) sampler->Stop();
1684 1684
1685 delete deoptimizer_data_; 1685 delete deoptimizer_data_;
1686 deoptimizer_data_ = NULL; 1686 deoptimizer_data_ = NULL;
1687 builtins_.TearDown(); 1687 builtins_.TearDown();
1688 bootstrapper_->TearDown(); 1688 bootstrapper_->TearDown();
1689 1689
1690 if (runtime_profiler_ != NULL) { 1690 if (runtime_profiler_ != NULL) {
1691 runtime_profiler_->TearDown();
1692 delete runtime_profiler_; 1691 delete runtime_profiler_;
1693 runtime_profiler_ = NULL; 1692 runtime_profiler_ = NULL;
1694 } 1693 }
1695 heap_.TearDown(); 1694 heap_.TearDown();
1696 logger_->TearDown(); 1695 logger_->TearDown();
1697 1696
1698 delete heap_profiler_; 1697 delete heap_profiler_;
1699 heap_profiler_ = NULL; 1698 heap_profiler_ = NULL;
1700 delete cpu_profiler_; 1699 delete cpu_profiler_;
1701 cpu_profiler_ = NULL; 1700 cpu_profiler_ = NULL;
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 clear_scheduled_exception(); 2041 clear_scheduled_exception();
2043 2042
2044 // Deserializing may put strange things in the root array's copy of the 2043 // Deserializing may put strange things in the root array's copy of the
2045 // stack guard. 2044 // stack guard.
2046 heap_.SetStackLimits(); 2045 heap_.SetStackLimits();
2047 2046
2048 // Quiet the heap NaN if needed on target platform. 2047 // Quiet the heap NaN if needed on target platform.
2049 if (!create_heap_objects) Assembler::QuietNaN(heap_.nan_value()); 2048 if (!create_heap_objects) Assembler::QuietNaN(heap_.nan_value());
2050 2049
2051 runtime_profiler_ = new RuntimeProfiler(this); 2050 runtime_profiler_ = new RuntimeProfiler(this);
2052 runtime_profiler_->SetUp();
2053 2051
2054 // If we are deserializing, log non-function code objects and compiled 2052 // If we are deserializing, log non-function code objects and compiled
2055 // functions found in the snapshot. 2053 // functions found in the snapshot.
2056 if (!create_heap_objects && 2054 if (!create_heap_objects &&
2057 (FLAG_log_code || 2055 (FLAG_log_code ||
2058 FLAG_ll_prof || 2056 FLAG_ll_prof ||
2059 FLAG_perf_jit_prof || 2057 FLAG_perf_jit_prof ||
2060 FLAG_perf_basic_prof || 2058 FLAG_perf_basic_prof ||
2061 logger_->is_logging_code_events())) { 2059 logger_->is_logging_code_events())) {
2062 HandleScope scope(this); 2060 HandleScope scope(this);
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 2296
2299 #ifdef DEBUG 2297 #ifdef DEBUG
2300 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2298 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2301 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2299 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2302 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2300 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2303 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2301 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2304 #undef ISOLATE_FIELD_OFFSET 2302 #undef ISOLATE_FIELD_OFFSET
2305 #endif 2303 #endif
2306 2304
2307 } } // namespace v8::internal 2305 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698