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

Side by Side Diff: runtime/vm/dart_entry.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_api_impl_test.cc ('k') | runtime/vm/debugger.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/dart_entry.h" 5 #include "vm/dart_entry.h"
6 6
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/code_generator.h" 8 #include "vm/code_generator.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/debugger.h" 10 #include "vm/debugger.h"
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 class_name, 549 class_name,
550 function_name, 550 function_name,
551 kNumArguments, 551 kNumArguments,
552 Object::empty_array()); 552 Object::empty_array());
553 ASSERT(!function.IsNull()); 553 ASSERT(!function.IsNull());
554 isolate->object_store()->set_handle_message_function(function); 554 isolate->object_store()->set_handle_message_function(function);
555 } 555 }
556 const Array& args = Array::Handle(zone, Array::New(kNumArguments)); 556 const Array& args = Array::Handle(zone, Array::New(kNumArguments));
557 args.SetAt(0, handler); 557 args.SetAt(0, handler);
558 args.SetAt(1, message); 558 args.SetAt(1, message);
559 if (isolate->debugger()->IsStepping()) { 559 if (FLAG_support_debugger && isolate->debugger()->IsStepping()) {
560 // If the isolate is being debugged and the debugger was stepping 560 // If the isolate is being debugged and the debugger was stepping
561 // through code, enable single stepping so debugger will stop 561 // through code, enable single stepping so debugger will stop
562 // at the first location the user is interested in. 562 // at the first location the user is interested in.
563 isolate->debugger()->SetSingleStep(); 563 isolate->debugger()->SetSingleStep();
564 } 564 }
565 const Object& result = Object::Handle(zone, 565 const Object& result = Object::Handle(zone,
566 DartEntry::InvokeFunction(function, args)); 566 DartEntry::InvokeFunction(function, args));
567 ASSERT(result.IsNull() || result.IsError()); 567 ASSERT(result.IsNull() || result.IsError());
568 return result.raw(); 568 return result.raw();
569 } 569 }
(...skipping 27 matching lines...) Expand all
597 const Array& args = Array::Handle(Array::New(kNumArguments)); 597 const Array& args = Array::Handle(Array::New(kNumArguments));
598 args.SetAt(0, map); 598 args.SetAt(0, map);
599 args.SetAt(1, key); 599 args.SetAt(1, key);
600 args.SetAt(2, value); 600 args.SetAt(2, value);
601 const Object& result = Object::Handle(DartEntry::InvokeFunction(function, 601 const Object& result = Object::Handle(DartEntry::InvokeFunction(function,
602 args)); 602 args));
603 return result.raw(); 603 return result.raw();
604 } 604 }
605 605
606 } // namespace dart 606 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698