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

Side by Side Diff: src/isolate.cc

Issue 6696042: Adding 'isolates' argument to LOG to get rid of multiple TLS fetches in profiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: Addressing code review feedback + rebase Created 9 years, 9 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
« no previous file with comments | « src/ic.cc ('k') | src/jsregexp.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 2006-2010 the V8 project authors. All rights reserved. 1 // Copyright 2006-2010 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 CPU::Setup(); 722 CPU::Setup();
723 723
724 deoptimizer_data_ = new DeoptimizerData; 724 deoptimizer_data_ = new DeoptimizerData;
725 runtime_profiler_ = new RuntimeProfiler(this); 725 runtime_profiler_ = new RuntimeProfiler(this);
726 runtime_profiler_->Setup(); 726 runtime_profiler_->Setup();
727 727
728 // If we are deserializing, log non-function code objects and compiled 728 // If we are deserializing, log non-function code objects and compiled
729 // functions found in the snapshot. 729 // functions found in the snapshot.
730 if (des != NULL && FLAG_log_code) { 730 if (des != NULL && FLAG_log_code) {
731 HandleScope scope; 731 HandleScope scope;
732 LOG(LogCodeObjects()); 732 LOG(this, LogCodeObjects());
733 LOG(LogCompiledFunctions()); 733 LOG(this, LogCompiledFunctions());
734 } 734 }
735 735
736 state_ = INITIALIZED; 736 state_ = INITIALIZED;
737 return true; 737 return true;
738 } 738 }
739 739
740 740
741 void Isolate::Enter() { 741 void Isolate::Enter() {
742 Isolate* current_isolate = NULL; 742 Isolate* current_isolate = NULL;
743 PerIsolateThreadData* current_data = CurrentPerIsolateThreadData(); 743 PerIsolateThreadData* current_data = CurrentPerIsolateThreadData();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 816
817 #ifdef DEBUG 817 #ifdef DEBUG
818 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 818 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
819 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 819 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
820 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 820 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
821 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 821 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
822 #undef ISOLATE_FIELD_OFFSET 822 #undef ISOLATE_FIELD_OFFSET
823 #endif 823 #endif
824 824
825 } } // namespace v8::internal 825 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698