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

Side by Side Diff: vm/class_finalizer.cc

Issue 10783035: Create frequently used symbols in the vm isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « lib/string.cc ('k') | vm/class_finalizer_test.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/class_finalizer.h" 5 #include "vm/class_finalizer.h"
6 6
7 #include "vm/flags.h" 7 #include "vm/flags.h"
8 #include "vm/heap.h" 8 #include "vm/heap.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
11 #include "vm/object_store.h" 11 #include "vm/object_store.h"
12 #include "vm/parser.h" 12 #include "vm/parser.h"
13 #include "vm/symbols.h"
13 14
14 namespace dart { 15 namespace dart {
15 16
16 DEFINE_FLAG(bool, print_classes, false, "Prints details about loaded classes."); 17 DEFINE_FLAG(bool, print_classes, false, "Prints details about loaded classes.");
17 DEFINE_FLAG(bool, trace_class_finalization, false, "Trace class finalization."); 18 DEFINE_FLAG(bool, trace_class_finalization, false, "Trace class finalization.");
18 DEFINE_FLAG(bool, trace_type_finalization, false, "Trace type finalization."); 19 DEFINE_FLAG(bool, trace_type_finalization, false, "Trace type finalization.");
19 DEFINE_FLAG(bool, verify_implements, false, 20 DEFINE_FLAG(bool, verify_implements, false,
20 "Verify that all classes implement their interface."); 21 "Verify that all classes implement their interface.");
21 DECLARE_FLAG(bool, enable_type_checks); 22 DECLARE_FLAG(bool, enable_type_checks);
22 23
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 void ClassFinalizer::ReportError(const char* format, ...) { 1504 void ClassFinalizer::ReportError(const char* format, ...) {
1504 va_list args; 1505 va_list args;
1505 va_start(args, format); 1506 va_start(args, format);
1506 const Error& error = Error::Handle( 1507 const Error& error = Error::Handle(
1507 Parser::FormatError(Script::Handle(), -1, "Error", format, args)); 1508 Parser::FormatError(Script::Handle(), -1, "Error", format, args));
1508 va_end(args); 1509 va_end(args);
1509 ReportError(error); 1510 ReportError(error);
1510 } 1511 }
1511 1512
1512 } // namespace dart 1513 } // namespace dart
OLDNEW
« no previous file with comments | « lib/string.cc ('k') | vm/class_finalizer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698