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

Side by Side Diff: src/isolate.h

Issue 2040683002: Remove dependencies of V8 on cpu-profiler is_profiling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use macro for declaring is_profiling Created 4 years, 6 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 | « src/ic/ic-compiler.cc ('k') | src/log.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 V(HStatistics*, hstatistics, NULL) \ 413 V(HStatistics*, hstatistics, NULL) \
414 V(CompilationStatistics*, turbo_statistics, NULL) \ 414 V(CompilationStatistics*, turbo_statistics, NULL) \
415 V(HTracer*, htracer, NULL) \ 415 V(HTracer*, htracer, NULL) \
416 V(CodeTracer*, code_tracer, NULL) \ 416 V(CodeTracer*, code_tracer, NULL) \
417 V(bool, fp_stubs_generated, false) \ 417 V(bool, fp_stubs_generated, false) \
418 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \ 418 V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \
419 V(PromiseRejectCallback, promise_reject_callback, NULL) \ 419 V(PromiseRejectCallback, promise_reject_callback, NULL) \
420 V(const v8::StartupData*, snapshot_blob, NULL) \ 420 V(const v8::StartupData*, snapshot_blob, NULL) \
421 V(int, code_and_metadata_size, 0) \ 421 V(int, code_and_metadata_size, 0) \
422 V(int, bytecode_and_metadata_size, 0) \ 422 V(int, bytecode_and_metadata_size, 0) \
423 /* true if being profiled. Causes collection of extra compile info. */ \
424 V(bool, is_profiling, false) \
423 ISOLATE_INIT_SIMULATOR_LIST(V) 425 ISOLATE_INIT_SIMULATOR_LIST(V)
424 426
425 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \ 427 #define THREAD_LOCAL_TOP_ACCESSOR(type, name) \
426 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \ 428 inline void set_##name(type v) { thread_local_top_.name##_ = v; } \
427 inline type name() const { return thread_local_top_.name##_; } 429 inline type name() const { return thread_local_top_.name##_; }
428 430
429 #define THREAD_LOCAL_TOP_ADDRESS(type, name) \ 431 #define THREAD_LOCAL_TOP_ADDRESS(type, name) \
430 type* name##_address() { return &thread_local_top_.name##_; } 432 type* name##_address() { return &thread_local_top_.name##_; }
431 433
432 434
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 911
910 RegExpStack* regexp_stack() { return regexp_stack_; } 912 RegExpStack* regexp_stack() { return regexp_stack_; }
911 913
912 unibrow::Mapping<unibrow::Ecma262Canonicalize>* 914 unibrow::Mapping<unibrow::Ecma262Canonicalize>*
913 interp_canonicalize_mapping() { 915 interp_canonicalize_mapping() {
914 return &regexp_macro_assembler_canonicalize_; 916 return &regexp_macro_assembler_canonicalize_;
915 } 917 }
916 918
917 Debug* debug() { return debug_; } 919 Debug* debug() { return debug_; }
918 920
921 bool* is_profiling_address() { return &is_profiling_; }
919 CpuProfiler* cpu_profiler() const { return cpu_profiler_; } 922 CpuProfiler* cpu_profiler() const { return cpu_profiler_; }
920 HeapProfiler* heap_profiler() const { return heap_profiler_; } 923 HeapProfiler* heap_profiler() const { return heap_profiler_; }
921 924
922 #ifdef DEBUG 925 #ifdef DEBUG
923 HistogramInfo* heap_histograms() { return heap_histograms_; } 926 HistogramInfo* heap_histograms() { return heap_histograms_; }
924 927
925 JSObject::SpillInformation* js_spill_information() { 928 JSObject::SpillInformation* js_spill_information() {
926 return &js_spill_information_; 929 return &js_spill_information_;
927 } 930 }
928 #endif 931 #endif
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 1639
1637 EmbeddedVector<char, 128> filename_; 1640 EmbeddedVector<char, 128> filename_;
1638 FILE* file_; 1641 FILE* file_;
1639 int scope_depth_; 1642 int scope_depth_;
1640 }; 1643 };
1641 1644
1642 } // namespace internal 1645 } // namespace internal
1643 } // namespace v8 1646 } // namespace v8
1644 1647
1645 #endif // V8_ISOLATE_H_ 1648 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698