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

Side by Side Diff: vm/bootstrap.cc

Issue 10874072: Use the return value of vm native methods to set the return value, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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
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/bootstrap_natives.h"
9 #include "vm/compiler.h" 10 #include "vm/compiler.h"
10 #include "vm/dart_api_impl.h" 11 #include "vm/dart_api_impl.h"
11 #include "vm/object.h" 12 #include "vm/object.h"
12 #include "vm/object_store.h" 13 #include "vm/object_store.h"
13 14
14 namespace dart { 15 namespace dart {
15 16
16 DEFINE_FLAG(bool, print_bootstrap, false, "Print the bootstrap source."); 17 DEFINE_FLAG(bool, print_bootstrap, false, "Print the bootstrap source.");
17 18
18 19
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const Error& error = Error::Handle(Compiler::Compile(library, script)); 73 const Error& error = Error::Handle(Compiler::Compile(library, script));
73 if (error.IsNull()) { 74 if (error.IsNull()) {
74 library.SetLoaded(); 75 library.SetLoaded();
75 } else { 76 } else {
76 library.SetLoadError(); 77 library.SetLoadError();
77 } 78 }
78 return error.raw(); 79 return error.raw();
79 } 80 }
80 81
81 } // namespace dart 82 } // namespace dart
OLDNEW
« no previous file with comments | « lib/weak_property.cc ('k') | vm/bootstrap_natives.h » ('j') | vm/bootstrap_natives.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698