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

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

Issue 1134623004: - Use conditional code inclusion for the dart_no_snapshot and dart executables using the MACRO DART… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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
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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 return megamorphic_cache_class_; 518 return megamorphic_cache_class_;
519 } 519 }
520 static RawClass* subtypetestcache_class() { return subtypetestcache_class_; } 520 static RawClass* subtypetestcache_class() { return subtypetestcache_class_; }
521 521
522 // Initialize the VM isolate. 522 // Initialize the VM isolate.
523 static void InitOnce(Isolate* isolate); 523 static void InitOnce(Isolate* isolate);
524 static void FinalizeVMIsolate(Isolate* isolate); 524 static void FinalizeVMIsolate(Isolate* isolate);
525 525
526 // Initialize a new isolate either from source or from a snapshot. 526 // Initialize a new isolate either from source or from a snapshot.
527 static RawError* Init(Isolate* isolate); 527 static RawError* Init(Isolate* isolate);
528 static void InitFromSnapshot(Isolate* isolate);
529 528
530 static void MakeUnusedSpaceTraversable(const Object& obj, 529 static void MakeUnusedSpaceTraversable(const Object& obj,
531 intptr_t original_size, 530 intptr_t original_size,
532 intptr_t used_size); 531 intptr_t used_size);
533 532
534 static intptr_t InstanceSize() { 533 static intptr_t InstanceSize() {
535 return RoundedAllocationSize(sizeof(RawObject)); 534 return RoundedAllocationSize(sizeof(RawObject));
536 } 535 }
537 536
538 static void VerifyBuiltinVtables(); 537 static void VerifyBuiltinVtables();
(...skipping 7231 matching lines...) Expand 10 before | Expand all | Expand 10 after
7770 7769
7771 7770
7772 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7771 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7773 intptr_t index) { 7772 intptr_t index) {
7774 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7773 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7775 } 7774 }
7776 7775
7777 } // namespace dart 7776 } // namespace dart
7778 7777
7779 #endif // VM_OBJECT_H_ 7778 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698