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

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

Issue 998763002: While creating snapshots do not write out fields of an empty context and while reading do not creat… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | « no previous file | runtime/vm/raw_object_snapshot.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 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1535 cls = Class::New<Stacktrace>(); 1535 cls = Class::New<Stacktrace>();
1536 cls = Class::New<JSRegExp>(); 1536 cls = Class::New<JSRegExp>();
1537 cls = Class::New<Number>(); 1537 cls = Class::New<Number>();
1538 1538
1539 cls = Class::New<WeakProperty>(); 1539 cls = Class::New<WeakProperty>();
1540 object_store->set_weak_property_class(cls); 1540 object_store->set_weak_property_class(cls);
1541 1541
1542 cls = Class::New<MirrorReference>(); 1542 cls = Class::New<MirrorReference>();
1543 cls = Class::New<UserTag>(); 1543 cls = Class::New<UserTag>();
1544 1544
1545 const Context& context = Context::Handle(isolate,
1546 Context::New(0, Heap::kOld));
1547 object_store->set_empty_context(context);
1548
1545 StubCode::InitBootstrapStubs(isolate); 1549 StubCode::InitBootstrapStubs(isolate);
1546 } 1550 }
1547 1551
1548 1552
1549 void Object::Print() const { 1553 void Object::Print() const {
1550 OS::Print("%s\n", ToCString()); 1554 OS::Print("%s\n", ToCString());
1551 } 1555 }
1552 1556
1553 1557
1554 static void AddNameProperties(JSONObject* jsobj, 1558 static void AddNameProperties(JSONObject* jsobj,
(...skipping 19193 matching lines...) Expand 10 before | Expand all | Expand 10 after
20748 return tag_label.ToCString(); 20752 return tag_label.ToCString();
20749 } 20753 }
20750 20754
20751 20755
20752 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 20756 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
20753 Instance::PrintJSONImpl(stream, ref); 20757 Instance::PrintJSONImpl(stream, ref);
20754 } 20758 }
20755 20759
20756 20760
20757 } // namespace dart 20761 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698