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

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

Issue 10752017: Rename Script's source to Source. Trace parser (--trace-parser) only if source is available (thus s… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « no previous file | 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) 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/bootstrap.h" 5 #include "vm/bootstrap.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_api_impl.h" 10 #include "vm/dart_api_impl.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const Script& result = 65 const Script& result =
66 Script::Handle(Script::New(url, src, RawScript::kSource)); 66 Script::Handle(Script::New(url, src, RawScript::kSource));
67 return result.raw(); 67 return result.raw();
68 } 68 }
69 69
70 70
71 RawError* Bootstrap::Compile(const Library& library, const Script& script) { 71 RawError* Bootstrap::Compile(const Library& library, const Script& script) {
72 if (FLAG_print_bootstrap) { 72 if (FLAG_print_bootstrap) {
73 OS::Print("Bootstrap source '%s':\n%s\n", 73 OS::Print("Bootstrap source '%s':\n%s\n",
74 String::Handle(script.url()).ToCString(), 74 String::Handle(script.url()).ToCString(),
75 String::Handle(script.source()).ToCString()); 75 String::Handle(script.Source()).ToCString());
76 } 76 }
77 library.SetLoadInProgress(); 77 library.SetLoadInProgress();
78 const Error& error = Error::Handle(Compiler::Compile(library, script)); 78 const Error& error = Error::Handle(Compiler::Compile(library, script));
79 if (error.IsNull()) { 79 if (error.IsNull()) {
80 library.SetLoaded(); 80 library.SetLoaded();
81 } else { 81 } else {
82 library.SetLoadError(); 82 library.SetLoadError();
83 } 83 }
84 return error.raw(); 84 return error.raw();
85 } 85 }
86 86
87 } // namespace dart 87 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/debugger_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698