| OLD | NEW |
| 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 "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3050 } | 3050 } |
| 3051 | 3051 |
| 3052 | 3052 |
| 3053 // Ensure that top level parsing of the class has been done. | 3053 // Ensure that top level parsing of the class has been done. |
| 3054 RawError* Class::EnsureIsFinalized(Thread* thread) const { | 3054 RawError* Class::EnsureIsFinalized(Thread* thread) const { |
| 3055 // Finalized classes have already been parsed. | 3055 // Finalized classes have already been parsed. |
| 3056 if (is_finalized()) { | 3056 if (is_finalized()) { |
| 3057 return Error::null(); | 3057 return Error::null(); |
| 3058 } | 3058 } |
| 3059 if (Compiler::IsBackgroundCompilation()) { | 3059 if (Compiler::IsBackgroundCompilation()) { |
| 3060 Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId); | 3060 Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId, |
| 3061 "Class finalization while compiling"); |
| 3061 } | 3062 } |
| 3062 ASSERT(thread->IsMutatorThread()); | 3063 ASSERT(thread->IsMutatorThread()); |
| 3063 ASSERT(thread != NULL); | 3064 ASSERT(thread != NULL); |
| 3064 const Error& error = Error::Handle( | 3065 const Error& error = Error::Handle( |
| 3065 thread->zone(), Compiler::CompileClass(*this)); | 3066 thread->zone(), Compiler::CompileClass(*this)); |
| 3066 if (!error.IsNull()) { | 3067 if (!error.IsNull()) { |
| 3067 ASSERT(thread == Thread::Current()); | 3068 ASSERT(thread == Thread::Current()); |
| 3068 if (thread->long_jump_base() != NULL) { | 3069 if (thread->long_jump_base() != NULL) { |
| 3069 Report::LongJump(error); | 3070 Report::LongJump(error); |
| 3070 UNREACHABLE(); | 3071 UNREACHABLE(); |
| (...skipping 18996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22067 return UserTag::null(); | 22068 return UserTag::null(); |
| 22068 } | 22069 } |
| 22069 | 22070 |
| 22070 | 22071 |
| 22071 const char* UserTag::ToCString() const { | 22072 const char* UserTag::ToCString() const { |
| 22072 const String& tag_label = String::Handle(label()); | 22073 const String& tag_label = String::Handle(label()); |
| 22073 return tag_label.ToCString(); | 22074 return tag_label.ToCString(); |
| 22074 } | 22075 } |
| 22075 | 22076 |
| 22076 } // namespace dart | 22077 } // namespace dart |
| OLD | NEW |