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

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

Issue 1660063002: Remove many features when building product mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/dart_entry.cc ('k') | runtime/vm/debugger_api_impl.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 "Intercept breakpoints and other pause events before they " 42 "Intercept breakpoints and other pause events before they "
43 "are sent to the embedder and use a generic VM breakpoint " 43 "are sent to the embedder and use a generic VM breakpoint "
44 "handler instead. This handler dispatches breakpoints to " 44 "handler instead. This handler dispatches breakpoints to "
45 "the VM service."); 45 "the VM service.");
46 46
47 DECLARE_FLAG(bool, trace_isolates); 47 DECLARE_FLAG(bool, trace_isolates);
48 DECLARE_FLAG(bool, warn_on_pause_with_no_debugger); 48 DECLARE_FLAG(bool, warn_on_pause_with_no_debugger);
49 DECLARE_FLAG(bool, precompilation); 49 DECLARE_FLAG(bool, precompilation);
50 50
51 51
52 #ifndef PRODUCT
53
52 Debugger::EventHandler* Debugger::event_handler_ = NULL; 54 Debugger::EventHandler* Debugger::event_handler_ = NULL;
53 55
54 56
55 class RemoteObjectCache : public ZoneAllocated { 57 class RemoteObjectCache : public ZoneAllocated {
56 public: 58 public:
57 explicit RemoteObjectCache(intptr_t initial_size); 59 explicit RemoteObjectCache(intptr_t initial_size);
58 intptr_t AddObject(const Object& obj); 60 intptr_t AddObject(const Object& obj);
59 RawObject* GetObj(intptr_t obj_id) const; 61 RawObject* GetObj(intptr_t obj_id) const;
60 bool IsValidId(intptr_t obj_id) const { 62 bool IsValidId(intptr_t obj_id) const {
61 return obj_id < objs_->Length(); 63 return obj_id < objs_->Length();
(...skipping 3210 matching lines...) Expand 10 before | Expand all | Expand 10 after
3272 breakpoint_locations_ = bpt; 3274 breakpoint_locations_ = bpt;
3273 } 3275 }
3274 3276
3275 3277
3276 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 3278 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
3277 ASSERT(bpt->next() == NULL); 3279 ASSERT(bpt->next() == NULL);
3278 bpt->set_next(code_breakpoints_); 3280 bpt->set_next(code_breakpoints_);
3279 code_breakpoints_ = bpt; 3281 code_breakpoints_ = bpt;
3280 } 3282 }
3281 3283
3284 #endif // !PRODUCT
3285
3282 } // namespace dart 3286 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/debugger_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698