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

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

Issue 9836064: Stop ignoring compilation errors on compile_all (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | « runtime/vm/compiler.cc ('k') | no next file » | 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/bootstrap.h" 10 #include "vm/bootstrap.h"
(...skipping 5225 matching lines...) Expand 10 before | Expand all | Expand 10 after
5236 Error& error = Error::Handle(); 5236 Error& error = Error::Handle();
5237 Library& lib = Library::Handle( 5237 Library& lib = Library::Handle(
5238 Isolate::Current()->object_store()->registered_libraries()); 5238 Isolate::Current()->object_store()->registered_libraries());
5239 Class& cls = Class::Handle(); 5239 Class& cls = Class::Handle();
5240 while (!lib.IsNull()) { 5240 while (!lib.IsNull()) {
5241 ClassDictionaryIterator it(lib); 5241 ClassDictionaryIterator it(lib);
5242 while (it.HasNext()) { 5242 while (it.HasNext()) {
5243 cls ^= it.GetNextClass(); 5243 cls ^= it.GetNextClass();
5244 if (!cls.is_interface()) { 5244 if (!cls.is_interface()) {
5245 error = Compiler::CompileAllFunctions(cls); 5245 error = Compiler::CompileAllFunctions(cls);
5246 if (!error.IsNull()) {
5247 return error.raw();
5248 }
5246 } 5249 }
5247 } 5250 }
5248 Array& anon_classes = Array::Handle(lib.raw_ptr()->anonymous_classes_); 5251 Array& anon_classes = Array::Handle(lib.raw_ptr()->anonymous_classes_);
5249 for (int i = 0; i < lib.raw_ptr()->num_anonymous_; i++) { 5252 for (int i = 0; i < lib.raw_ptr()->num_anonymous_; i++) {
5250 cls ^= anon_classes.At(i); 5253 cls ^= anon_classes.At(i);
5251 ASSERT(!cls.is_interface()); 5254 ASSERT(!cls.is_interface());
5252 error = Compiler::CompileAllFunctions(cls); 5255 error = Compiler::CompileAllFunctions(cls);
5256 if (!error.IsNull()) {
5257 return error.raw();
5258 }
5253 } 5259 }
5254 lib = lib.next_registered(); 5260 lib = lib.next_registered();
5255 } 5261 }
5256 return error.raw(); 5262 return error.raw();
5257 } 5263 }
5258 5264
5259 5265
5260 RawInstructions* Instructions::New(intptr_t size) { 5266 RawInstructions* Instructions::New(intptr_t size) {
5261 const Class& instructions_class = Class::Handle(Object::instructions_class()); 5267 const Class& instructions_class = Class::Handle(Object::instructions_class());
5262 Instructions& result = Instructions::Handle(); 5268 Instructions& result = Instructions::Handle();
(...skipping 3694 matching lines...) Expand 10 before | Expand all | Expand 10 after
8957 const String& str = String::Handle(pattern()); 8963 const String& str = String::Handle(pattern());
8958 const char* format = "JSRegExp: pattern=%s flags=%s"; 8964 const char* format = "JSRegExp: pattern=%s flags=%s";
8959 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags()); 8965 intptr_t len = OS::SNPrint(NULL, 0, format, str.ToCString(), Flags());
8960 char* chars = reinterpret_cast<char*>( 8966 char* chars = reinterpret_cast<char*>(
8961 Isolate::Current()->current_zone()->Allocate(len + 1)); 8967 Isolate::Current()->current_zone()->Allocate(len + 1));
8962 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags()); 8968 OS::SNPrint(chars, (len + 1), format, str.ToCString(), Flags());
8963 return chars; 8969 return chars;
8964 } 8970 }
8965 8971
8966 } // namespace dart 8972 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698