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

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

Issue 1149713002: With --noopt run unoptimized code through optimizer, more optimizations can be done later. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: m Created 5 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 | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/flow_graph.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 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 for (StackFrame* frame = iterator.NextFrame(); 1361 for (StackFrame* frame = iterator.NextFrame();
1362 frame != NULL; 1362 frame != NULL;
1363 frame = iterator.NextFrame()) { 1363 frame = iterator.NextFrame()) {
1364 ASSERT(frame->IsValid()); 1364 ASSERT(frame->IsValid());
1365 if (FLAG_trace_debugger_stacktrace) { 1365 if (FLAG_trace_debugger_stacktrace) {
1366 OS::PrintErr("CollectStackTrace: visiting frame:\n\t%s\n", 1366 OS::PrintErr("CollectStackTrace: visiting frame:\n\t%s\n",
1367 frame->ToCString()); 1367 frame->ToCString());
1368 } 1368 }
1369 if (frame->IsDartFrame()) { 1369 if (frame->IsDartFrame()) {
1370 code = frame->LookupDartCode(); 1370 code = frame->LookupDartCode();
1371 if (code.is_optimized()) { 1371 if (code.is_optimized() && !Compiler::always_optimize()) {
1372 deopt_frame = DeoptimizeToArray(isolate, frame, code); 1372 deopt_frame = DeoptimizeToArray(isolate, frame, code);
1373 for (InlinedFunctionsIterator it(code, frame->pc()); 1373 for (InlinedFunctionsIterator it(code, frame->pc());
1374 !it.Done(); 1374 !it.Done();
1375 it.Advance()) { 1375 it.Advance()) {
1376 inlined_code = it.code(); 1376 inlined_code = it.code();
1377 if (FLAG_trace_debugger_stacktrace) { 1377 if (FLAG_trace_debugger_stacktrace) {
1378 const Function& function = 1378 const Function& function =
1379 Function::Handle(isolate, inlined_code.function()); 1379 Function::Handle(isolate, inlined_code.function());
1380 ASSERT(!function.IsNull()); 1380 ASSERT(!function.IsNull());
1381 OS::PrintErr("CollectStackTrace: visiting inlined function: %s\n", 1381 OS::PrintErr("CollectStackTrace: visiting inlined function: %s\n",
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after
2925 } 2925 }
2926 2926
2927 2927
2928 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2928 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2929 ASSERT(bpt->next() == NULL); 2929 ASSERT(bpt->next() == NULL);
2930 bpt->set_next(code_breakpoints_); 2930 bpt->set_next(code_breakpoints_);
2931 code_breakpoints_ = bpt; 2931 code_breakpoints_ = bpt;
2932 } 2932 }
2933 2933
2934 } // namespace dart 2934 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698