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

Side by Side Diff: src/isolate.h

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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 // Other types of state transitions are not interesting to the 971 // Other types of state transitions are not interesting to the
972 // runtime profiler, because they don't affect whether we're 972 // runtime profiler, because they don't affect whether we're
973 // in JS or not. 973 // in JS or not.
974 ASSERT((current_state == JS) == (state == JS)); 974 ASSERT((current_state == JS) == (state == JS));
975 } 975 }
976 } 976 }
977 thread_local_top_.current_vm_state_ = state; 977 thread_local_top_.current_vm_state_ = state;
978 } 978 }
979 #endif 979 #endif
980 980
981 void ResetEagerOptimizingData();
982
983 void SetData(void* data) { embedder_data_ = data; } 981 void SetData(void* data) { embedder_data_ = data; }
984 void* GetData() { return embedder_data_; } 982 void* GetData() { return embedder_data_; }
985 983
986 private: 984 private:
987 Isolate(); 985 Isolate();
988 986
989 // The per-process lock should be acquired before the ThreadDataTable is 987 // The per-process lock should be acquired before the ThreadDataTable is
990 // modified. 988 // modified.
991 class ThreadDataTable { 989 class ThreadDataTable {
992 public: 990 public:
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 1352
1355 } } // namespace v8::internal 1353 } } // namespace v8::internal
1356 1354
1357 // TODO(isolates): Get rid of these -inl.h includes and place them only where 1355 // TODO(isolates): Get rid of these -inl.h includes and place them only where
1358 // they're needed. 1356 // they're needed.
1359 #include "allocation-inl.h" 1357 #include "allocation-inl.h"
1360 #include "zone-inl.h" 1358 #include "zone-inl.h"
1361 #include "frames-inl.h" 1359 #include "frames-inl.h"
1362 1360
1363 #endif // V8_ISOLATE_H_ 1361 #endif // V8_ISOLATE_H_
OLDNEW
« src/compilation-cache.cc ('K') | « src/compiler.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698