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

Side by Side Diff: runtime/vm/debugger.cc

Issue 1657153002: Clean up global variables related to precompilation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed unnecessary includes Created 4 years, 10 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 | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/debugger.h" 5 #include "vm/debugger.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 27 matching lines...) Expand all
38 "Trace debugger stacktrace collection"); 38 "Trace debugger stacktrace collection");
39 DEFINE_FLAG(bool, verbose_debug, false, "Verbose debugger messages"); 39 DEFINE_FLAG(bool, verbose_debug, false, "Verbose debugger messages");
40 DEFINE_FLAG(bool, steal_breakpoints, false, 40 DEFINE_FLAG(bool, steal_breakpoints, false,
41 "Intercept breakpoints and other pause events before they " 41 "Intercept breakpoints and other pause events before they "
42 "are sent to the embedder and use a generic VM breakpoint " 42 "are sent to the embedder and use a generic VM breakpoint "
43 "handler instead. This handler dispatches breakpoints to " 43 "handler instead. This handler dispatches breakpoints to "
44 "the VM service."); 44 "the VM service.");
45 45
46 DECLARE_FLAG(bool, trace_isolates); 46 DECLARE_FLAG(bool, trace_isolates);
47 DECLARE_FLAG(bool, warn_on_pause_with_no_debugger); 47 DECLARE_FLAG(bool, warn_on_pause_with_no_debugger);
48 DECLARE_FLAG(bool, precompilation);
48 49
49 50
50 Debugger::EventHandler* Debugger::event_handler_ = NULL; 51 Debugger::EventHandler* Debugger::event_handler_ = NULL;
51 52
52 53
53 class RemoteObjectCache : public ZoneAllocated { 54 class RemoteObjectCache : public ZoneAllocated {
54 public: 55 public:
55 explicit RemoteObjectCache(intptr_t initial_size); 56 explicit RemoteObjectCache(intptr_t initial_size);
56 intptr_t AddObject(const Object& obj); 57 intptr_t AddObject(const Object& obj);
57 RawObject* GetObj(intptr_t obj_id) const; 58 RawObject* GetObj(intptr_t obj_id) const;
(...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 for (StackFrame* frame = iterator.NextFrame(); 1479 for (StackFrame* frame = iterator.NextFrame();
1479 frame != NULL; 1480 frame != NULL;
1480 frame = iterator.NextFrame()) { 1481 frame = iterator.NextFrame()) {
1481 ASSERT(frame->IsValid()); 1482 ASSERT(frame->IsValid());
1482 if (FLAG_trace_debugger_stacktrace) { 1483 if (FLAG_trace_debugger_stacktrace) {
1483 OS::PrintErr("CollectStackTrace: visiting frame:\n\t%s\n", 1484 OS::PrintErr("CollectStackTrace: visiting frame:\n\t%s\n",
1484 frame->ToCString()); 1485 frame->ToCString());
1485 } 1486 }
1486 if (frame->IsDartFrame()) { 1487 if (frame->IsDartFrame()) {
1487 code = frame->LookupDartCode(); 1488 code = frame->LookupDartCode();
1488 if (code.is_optimized() && !Compiler::always_optimize()) { 1489 if (code.is_optimized() && !FLAG_precompilation) {
1489 deopt_frame = DeoptimizeToArray(thread, frame, code); 1490 deopt_frame = DeoptimizeToArray(thread, frame, code);
1490 for (InlinedFunctionsIterator it(code, frame->pc()); 1491 for (InlinedFunctionsIterator it(code, frame->pc());
1491 !it.Done(); 1492 !it.Done();
1492 it.Advance()) { 1493 it.Advance()) {
1493 inlined_code = it.code(); 1494 inlined_code = it.code();
1494 if (FLAG_trace_debugger_stacktrace) { 1495 if (FLAG_trace_debugger_stacktrace) {
1495 const Function& function = 1496 const Function& function =
1496 Function::Handle(zone, inlined_code.function()); 1497 Function::Handle(zone, inlined_code.function());
1497 ASSERT(!function.IsNull()); 1498 ASSERT(!function.IsNull());
1498 OS::PrintErr("CollectStackTrace: visiting inlined function: %s\n", 1499 OS::PrintErr("CollectStackTrace: visiting inlined function: %s\n",
(...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
3264 } 3265 }
3265 3266
3266 3267
3267 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 3268 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
3268 ASSERT(bpt->next() == NULL); 3269 ASSERT(bpt->next() == NULL);
3269 bpt->set_next(code_breakpoints_); 3270 bpt->set_next(code_breakpoints_);
3270 code_breakpoints_ = bpt; 3271 code_breakpoints_ = bpt;
3271 } 3272 }
3272 3273
3273 } // namespace dart 3274 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698