| 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 3099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3110 return result.raw(); | 3110 return result.raw(); |
| 3111 } | 3111 } |
| 3112 | 3112 |
| 3113 | 3113 |
| 3114 // Ensure that top level parsing of the class has been done. | 3114 // Ensure that top level parsing of the class has been done. |
| 3115 RawError* Class::EnsureIsFinalized(Thread* thread) const { | 3115 RawError* Class::EnsureIsFinalized(Thread* thread) const { |
| 3116 // Finalized classes have already been parsed. | 3116 // Finalized classes have already been parsed. |
| 3117 if (is_finalized()) { | 3117 if (is_finalized()) { |
| 3118 return Error::null(); | 3118 return Error::null(); |
| 3119 } | 3119 } |
| 3120 ASSERT(thread->IsMutatorThread()); |
| 3120 ASSERT(thread != NULL); | 3121 ASSERT(thread != NULL); |
| 3121 const Error& error = Error::Handle( | 3122 const Error& error = Error::Handle( |
| 3122 thread->zone(), Compiler::CompileClass(*this)); | 3123 thread->zone(), Compiler::CompileClass(*this)); |
| 3123 if (!error.IsNull()) { | 3124 if (!error.IsNull()) { |
| 3124 ASSERT(thread == Thread::Current()); | 3125 ASSERT(thread == Thread::Current()); |
| 3125 if (thread->long_jump_base() != NULL) { | 3126 if (thread->long_jump_base() != NULL) { |
| 3126 Report::LongJump(error); | 3127 Report::LongJump(error); |
| 3127 UNREACHABLE(); | 3128 UNREACHABLE(); |
| 3128 } | 3129 } |
| 3129 } | 3130 } |
| (...skipping 18794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21924 return tag_label.ToCString(); | 21925 return tag_label.ToCString(); |
| 21925 } | 21926 } |
| 21926 | 21927 |
| 21927 | 21928 |
| 21928 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21929 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 21929 Instance::PrintJSONImpl(stream, ref); | 21930 Instance::PrintJSONImpl(stream, ref); |
| 21930 } | 21931 } |
| 21931 | 21932 |
| 21932 | 21933 |
| 21933 } // namespace dart | 21934 } // namespace dart |
| OLD | NEW |