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

Side by Side Diff: src/isolate.h

Issue 265593004: Always initialize the debugger eagerly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/debug-ia32.cc ('k') | src/isolate.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 "../include/v8-debug.h" 8 #include "../include/v8-debug.h"
9 #include "allocation.h" 9 #include "allocation.h"
10 #include "assert-scope.h" 10 #include "assert-scope.h"
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 921
922 RegExpStack* regexp_stack() { return regexp_stack_; } 922 RegExpStack* regexp_stack() { return regexp_stack_; }
923 923
924 unibrow::Mapping<unibrow::Ecma262Canonicalize>* 924 unibrow::Mapping<unibrow::Ecma262Canonicalize>*
925 interp_canonicalize_mapping() { 925 interp_canonicalize_mapping() {
926 return &interp_canonicalize_mapping_; 926 return &interp_canonicalize_mapping_;
927 } 927 }
928 928
929 inline bool IsCodePreAgingActive(); 929 inline bool IsCodePreAgingActive();
930 930
931 Debugger* debugger() { 931 Debugger* debugger() { return debugger_; }
932 if (!NoBarrier_Load(&debugger_initialized_)) InitializeDebugger(); 932 Debug* debug() { return debug_; }
933 return debugger_;
934 }
935 Debug* debug() {
936 if (!NoBarrier_Load(&debugger_initialized_)) InitializeDebugger();
937 return debug_;
938 }
939 933
940 inline bool IsDebuggerActive(); 934 inline bool IsDebuggerActive();
941 inline bool DebuggerHasBreakPoints(); 935 inline bool DebuggerHasBreakPoints();
942 936
943 CpuProfiler* cpu_profiler() const { return cpu_profiler_; } 937 CpuProfiler* cpu_profiler() const { return cpu_profiler_; }
944 HeapProfiler* heap_profiler() const { return heap_profiler_; } 938 HeapProfiler* heap_profiler() const { return heap_profiler_; }
945 939
946 #ifdef DEBUG 940 #ifdef DEBUG
947 HistogramInfo* heap_histograms() { return heap_histograms_; } 941 HistogramInfo* heap_histograms() { return heap_histograms_; }
948 942
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 1167
1174 void MarkCompactPrologue(bool is_compacting, 1168 void MarkCompactPrologue(bool is_compacting,
1175 ThreadLocalTop* archived_thread_data); 1169 ThreadLocalTop* archived_thread_data);
1176 void MarkCompactEpilogue(bool is_compacting, 1170 void MarkCompactEpilogue(bool is_compacting,
1177 ThreadLocalTop* archived_thread_data); 1171 ThreadLocalTop* archived_thread_data);
1178 1172
1179 void FillCache(); 1173 void FillCache();
1180 1174
1181 void PropagatePendingExceptionToExternalTryCatch(); 1175 void PropagatePendingExceptionToExternalTryCatch();
1182 1176
1183 void InitializeDebugger();
1184
1185 // Traverse prototype chain to find out whether the object is derived from 1177 // Traverse prototype chain to find out whether the object is derived from
1186 // the Error object. 1178 // the Error object.
1187 bool IsErrorObject(Handle<Object> obj); 1179 bool IsErrorObject(Handle<Object> obj);
1188 1180
1189 Atomic32 id_; 1181 Atomic32 id_;
1190 EntryStackItem* entry_stack_; 1182 EntryStackItem* entry_stack_;
1191 int stack_trace_nesting_level_; 1183 int stack_trace_nesting_level_;
1192 StringStream* incomplete_message_; 1184 StringStream* incomplete_message_;
1193 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT 1185 Address isolate_addresses_[kIsolateAddressCount + 1]; // NOLINT
1194 Bootstrapper* bootstrapper_; 1186 Bootstrapper* bootstrapper_;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 } 1483 }
1492 1484
1493 EmbeddedVector<char, 128> filename_; 1485 EmbeddedVector<char, 128> filename_;
1494 FILE* file_; 1486 FILE* file_;
1495 int scope_depth_; 1487 int scope_depth_;
1496 }; 1488 };
1497 1489
1498 } } // namespace v8::internal 1490 } } // namespace v8::internal
1499 1491
1500 #endif // V8_ISOLATE_H_ 1492 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/debug-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698