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

Side by Side Diff: src/isolate.cc

Issue 6904127: ll_prof: Reduce profiling hooks overhead from >400% to 25%. (Closed)
Patch Set: Review fixes Created 9 years, 7 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
« no previous file with comments | « no previous file | src/log.h » ('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 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 // Deserializing may put strange things in the root array's copy of the 811 // Deserializing may put strange things in the root array's copy of the
812 // stack guard. 812 // stack guard.
813 heap_.SetStackLimits(); 813 heap_.SetStackLimits();
814 814
815 deoptimizer_data_ = new DeoptimizerData; 815 deoptimizer_data_ = new DeoptimizerData;
816 runtime_profiler_ = new RuntimeProfiler(this); 816 runtime_profiler_ = new RuntimeProfiler(this);
817 runtime_profiler_->Setup(); 817 runtime_profiler_->Setup();
818 818
819 // If we are deserializing, log non-function code objects and compiled 819 // If we are deserializing, log non-function code objects and compiled
820 // functions found in the snapshot. 820 // functions found in the snapshot.
821 if (des != NULL && FLAG_log_code) { 821 if (des != NULL && (FLAG_log_code || FLAG_ll_prof)) {
822 HandleScope scope; 822 HandleScope scope;
823 LOG(this, LogCodeObjects()); 823 LOG(this, LogCodeObjects());
824 LOG(this, LogCompiledFunctions()); 824 LOG(this, LogCompiledFunctions());
825 } 825 }
826 826
827 state_ = INITIALIZED; 827 state_ = INITIALIZED;
828 return true; 828 return true;
829 } 829 }
830 830
831 831
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 907
908 #ifdef DEBUG 908 #ifdef DEBUG
909 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 909 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
910 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 910 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
911 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 911 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
912 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 912 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
913 #undef ISOLATE_FIELD_OFFSET 913 #undef ISOLATE_FIELD_OFFSET
914 #endif 914 #endif
915 915
916 } } // namespace v8::internal 916 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698