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

Side by Side Diff: src/isolate.h

Issue 11543020: Removed RuntimeProfilerRateLimiter class and RuntimeProfiler::IsSomeIsolateInJS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | « no previous file | src/platform-cygwin.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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 void SetCurrentVMState(StateTag state) { 1008 void SetCurrentVMState(StateTag state) {
1009 if (RuntimeProfiler::IsEnabled()) { 1009 if (RuntimeProfiler::IsEnabled()) {
1010 // Make sure thread local top is initialized. 1010 // Make sure thread local top is initialized.
1011 ASSERT(thread_local_top_.isolate_ == this); 1011 ASSERT(thread_local_top_.isolate_ == this);
1012 StateTag current_state = thread_local_top_.current_vm_state_; 1012 StateTag current_state = thread_local_top_.current_vm_state_;
1013 if (current_state != JS && state == JS) { 1013 if (current_state != JS && state == JS) {
1014 // Non-JS -> JS transition. 1014 // Non-JS -> JS transition.
1015 RuntimeProfiler::IsolateEnteredJS(this); 1015 RuntimeProfiler::IsolateEnteredJS(this);
1016 } else if (current_state == JS && state != JS) { 1016 } else if (current_state == JS && state != JS) {
1017 // JS -> non-JS transition. 1017 // JS -> non-JS transition.
1018 ASSERT(RuntimeProfiler::IsSomeIsolateInJS());
1019 RuntimeProfiler::IsolateExitedJS(this); 1018 RuntimeProfiler::IsolateExitedJS(this);
1020 } else { 1019 } else {
1021 // Other types of state transitions are not interesting to the 1020 // Other types of state transitions are not interesting to the
1022 // runtime profiler, because they don't affect whether we're 1021 // runtime profiler, because they don't affect whether we're
1023 // in JS or not. 1022 // in JS or not.
1024 ASSERT((current_state == JS) == (state == JS)); 1023 ASSERT((current_state == JS) == (state == JS));
1025 } 1024 }
1026 } 1025 }
1027 thread_local_top_.current_vm_state_ = state; 1026 thread_local_top_.current_vm_state_ = state;
1028 } 1027 }
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 1438
1440 // Mark the native context with out of memory. 1439 // Mark the native context with out of memory.
1441 inline void Context::mark_out_of_memory() { 1440 inline void Context::mark_out_of_memory() {
1442 native_context()->set_out_of_memory(HEAP->true_value()); 1441 native_context()->set_out_of_memory(HEAP->true_value());
1443 } 1442 }
1444 1443
1445 1444
1446 } } // namespace v8::internal 1445 } } // namespace v8::internal
1447 1446
1448 #endif // V8_ISOLATE_H_ 1447 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/platform-cygwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698