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

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

Issue 16434015: Move code setting super type of class Object to null from object.cc to parser.cc (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « no previous file | runtime/vm/parser.cc » ('j') | 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 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 type = Type::NewNonParameterizedType(cls); 1076 type = Type::NewNonParameterizedType(cls);
1077 object_store->set_dynamic_type(type); 1077 object_store->set_dynamic_type(type);
1078 1078
1079 // Finish the initialization by compiling the bootstrap scripts containing the 1079 // Finish the initialization by compiling the bootstrap scripts containing the
1080 // base interfaces and the implementation of the internal classes. 1080 // base interfaces and the implementation of the internal classes.
1081 const Error& error = Error::Handle(Bootstrap::LoadandCompileScripts()); 1081 const Error& error = Error::Handle(Bootstrap::LoadandCompileScripts());
1082 if (!error.IsNull()) { 1082 if (!error.IsNull()) {
1083 return error.raw(); 1083 return error.raw();
1084 } 1084 }
1085 1085
1086 // Remove the Object superclass cycle by setting the super type to null (not
1087 // to the type of null).
1088 cls = object_store->object_class();
1089 cls.set_super_type(AbstractType::Handle());
1090
1091 ClassFinalizer::VerifyBootstrapClasses(); 1086 ClassFinalizer::VerifyBootstrapClasses();
1092 MarkInvisibleFunctions(); 1087 MarkInvisibleFunctions();
1093 1088
1094 // Set up the intrinsic state of all functions (core, math and scalar list). 1089 // Set up the intrinsic state of all functions (core, math and scalar list).
1095 Intrinsifier::InitializeState(); 1090 Intrinsifier::InitializeState();
1096 1091
1097 return Error::null(); 1092 return Error::null();
1098 } 1093 }
1099 1094
1100 1095
(...skipping 12301 matching lines...) Expand 10 before | Expand all | Expand 10 after
13402 space); 13397 space);
13403 return reinterpret_cast<RawWeakProperty*>(raw); 13398 return reinterpret_cast<RawWeakProperty*>(raw);
13404 } 13399 }
13405 13400
13406 13401
13407 const char* WeakProperty::ToCString() const { 13402 const char* WeakProperty::ToCString() const {
13408 return "_WeakProperty"; 13403 return "_WeakProperty";
13409 } 13404 }
13410 13405
13411 } // namespace dart 13406 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698