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

Side by Side Diff: src/isolate.cc

Issue 7274024: Suspend runtime profiler as soon as we exit JS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 months 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 PerIsolateThreadData* previous_thread_data = item->previous_thread_data; 1848 PerIsolateThreadData* previous_thread_data = item->previous_thread_data;
1849 Isolate* previous_isolate = item->previous_isolate; 1849 Isolate* previous_isolate = item->previous_isolate;
1850 1850
1851 delete item; 1851 delete item;
1852 1852
1853 // Reinit the current thread for the isolate it was running before this one. 1853 // Reinit the current thread for the isolate it was running before this one.
1854 SetIsolateThreadLocals(previous_isolate, previous_thread_data); 1854 SetIsolateThreadLocals(previous_isolate, previous_thread_data);
1855 } 1855 }
1856 1856
1857 1857
1858 void Isolate::ResetEagerOptimizingData() {
1859 compilation_cache_->ResetEagerOptimizingData();
1860 }
1861
1862
1863 #ifdef DEBUG 1858 #ifdef DEBUG
1864 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 1859 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
1865 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 1860 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
1866 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 1861 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
1867 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1862 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1868 #undef ISOLATE_FIELD_OFFSET 1863 #undef ISOLATE_FIELD_OFFSET
1869 #endif 1864 #endif
1870 1865
1871 } } // namespace v8::internal 1866 } } // namespace v8::internal
OLDNEW
« src/compilation-cache.cc ('K') | « src/isolate.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698