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

Side by Side Diff: vm/snapshot.cc

Issue 10917222: Move all the closure related fields in RawFunction into a new class (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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 | « vm/snapshot.h ('k') | vm/symbols.h » ('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/snapshot.h" 5 #include "vm/snapshot.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bigint_operations.h" 8 #include "vm/bigint_operations.h"
9 #include "vm/bootstrap.h" 9 #include "vm/bootstrap.h"
10 #include "vm/exceptions.h" 10 #include "vm/exceptions.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 RawTypeParameter* SnapshotReader::NewTypeParameter() { 518 RawTypeParameter* SnapshotReader::NewTypeParameter() {
519 ALLOC_NEW_OBJECT(TypeParameter, Object::type_parameter_class()); 519 ALLOC_NEW_OBJECT(TypeParameter, Object::type_parameter_class());
520 } 520 }
521 521
522 522
523 RawPatchClass* SnapshotReader::NewPatchClass() { 523 RawPatchClass* SnapshotReader::NewPatchClass() {
524 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class()); 524 ALLOC_NEW_OBJECT(PatchClass, Object::patch_class_class());
525 } 525 }
526 526
527 527
528 RawClosureData* SnapshotReader::NewClosureData() {
529 ALLOC_NEW_OBJECT(ClosureData, Object::closure_data_class());
530 }
531
532
528 RawFunction* SnapshotReader::NewFunction() { 533 RawFunction* SnapshotReader::NewFunction() {
529 ALLOC_NEW_OBJECT(Function, Object::function_class()); 534 ALLOC_NEW_OBJECT(Function, Object::function_class());
530 } 535 }
531 536
532 537
533 RawField* SnapshotReader::NewField() { 538 RawField* SnapshotReader::NewField() {
534 ALLOC_NEW_OBJECT(Field, Object::field_class()); 539 ALLOC_NEW_OBJECT(Field, Object::field_class());
535 } 540 }
536 541
537 542
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 1175
1171 1176
1172 void MessageWriter::WriteMessage(const Object& obj) { 1177 void MessageWriter::WriteMessage(const Object& obj) {
1173 ASSERT(kind() == Snapshot::kMessage); 1178 ASSERT(kind() == Snapshot::kMessage);
1174 WriteObject(obj.raw()); 1179 WriteObject(obj.raw());
1175 UnmarkAll(); 1180 UnmarkAll();
1176 } 1181 }
1177 1182
1178 1183
1179 } // namespace dart 1184 } // namespace dart
OLDNEW
« no previous file with comments | « vm/snapshot.h ('k') | vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698