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

Unified Diff: src/d8.cc

Issue 11416135: Fix counters in d8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/d8.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 9fc909ba9fb59173e2a18bade8553abe17dd412f..814a8f44ee52e11c25ee104b133808d6337a5017 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -1269,8 +1269,11 @@ void Shell::Initialize(Isolate* isolate) {
V8::SetAddHistogramSampleFunction(AddHistogramSample);
}
#endif // V8_SHARED
- if (options.test_shell) return;
+}
+
+void Shell::InitializeDebugger(Isolate* isolate) {
+ if (options.test_shell) return;
#ifndef V8_SHARED
Locker lock;
HandleScope scope;
@@ -1897,8 +1900,9 @@ int Shell::Main(int argc, char* argv[]) {
int result = 0;
Isolate* isolate = Isolate::GetCurrent();
{
- Symbols symbols(isolate);
Initialize(isolate);
+ Symbols symbols(isolate);
+ InitializeDebugger(isolate);
if (options.stress_opt || options.stress_deopt) {
Testing::SetStressRunType(options.stress_opt
« no previous file with comments | « src/d8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698