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

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

Issue 1897053003: Simple fixes (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « runtime/vm/jit_optimizer.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 "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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/jit_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698