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

Side by Side Diff: src/isolate.cc

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

Powered by Google App Engine
This is Rietveld 408576698