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

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

Issue 1526123002: VM: Const-correctness fixes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/lib/isolate.cc ('k') | runtime/vm/custom_isolate_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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 StackZone zone(thread); 307 StackZone zone(thread);
308 // We remember all the classes that are being compiled in these lists. This 308 // We remember all the classes that are being compiled in these lists. This
309 // also allows us to reset the marked_for_parsing state in case we see an 309 // also allows us to reset the marked_for_parsing state in case we see an
310 // error. 310 // error.
311 VMTagScope tagScope(thread, VMTag::kCompileClassTagId); 311 VMTagScope tagScope(thread, VMTag::kCompileClassTagId);
312 TimelineDurationScope tds(thread, 312 TimelineDurationScope tds(thread,
313 thread->isolate()->GetCompilerStream(), 313 thread->isolate()->GetCompilerStream(),
314 "CompileClass"); 314 "CompileClass");
315 if (tds.enabled()) { 315 if (tds.enabled()) {
316 tds.SetNumArguments(1); 316 tds.SetNumArguments(1);
317 tds.CopyArgument( 317 tds.CopyArgument(0, "class", cls.ToCString());
318 0,
319 "class",
320 const_cast<char*>(cls.ToCString()));
321 } 318 }
322 319
323 GrowableHandlePtrArray<const Class> parse_list(thread->zone(), 4); 320 GrowableHandlePtrArray<const Class> parse_list(thread->zone(), 4);
324 GrowableHandlePtrArray<const Class> patch_list(thread->zone(), 4); 321 GrowableHandlePtrArray<const Class> patch_list(thread->zone(), 4);
325 322
326 // Parse the class and all the interfaces it implements and super classes. 323 // Parse the class and all the interfaces it implements and super classes.
327 LongJumpScope jump; 324 LongJumpScope jump;
328 if (setjmp(*jump.Set()) == 0) { 325 if (setjmp(*jump.Set()) == 0) {
329 if (FLAG_trace_compiler) { 326 if (FLAG_trace_compiler) {
330 THR_Print("Compiling Class '%s'\n", cls.ToCString()); 327 THR_Print("Compiling Class '%s'\n", cls.ToCString());
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 } 1885 }
1889 1886
1890 1887
1891 void BackgroundCompiler::EnsureInit(Thread* thread) { 1888 void BackgroundCompiler::EnsureInit(Thread* thread) {
1892 UNREACHABLE(); 1889 UNREACHABLE();
1893 } 1890 }
1894 1891
1895 #endif // DART_PRECOMPILED 1892 #endif // DART_PRECOMPILED
1896 1893
1897 } // namespace dart 1894 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/custom_isolate_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698