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

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

Issue 22902002: Ensure the classes void and dynamic have empty arrays for fields, functions, etc. Move their Types … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/object.cc » ('j') | runtime/vm/object.cc » ('J')
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 #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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 405 }
406 406
407 static const LanguageError& branch_offset_error() { 407 static const LanguageError& branch_offset_error() {
408 ASSERT(branch_offset_error_ != NULL); 408 ASSERT(branch_offset_error_ != NULL);
409 return *branch_offset_error_; 409 return *branch_offset_error_;
410 } 410 }
411 411
412 static RawClass* class_class() { return class_class_; } 412 static RawClass* class_class() { return class_class_; }
413 static RawClass* dynamic_class() { return dynamic_class_; } 413 static RawClass* dynamic_class() { return dynamic_class_; }
414 static RawClass* void_class() { return void_class_; } 414 static RawClass* void_class() { return void_class_; }
415 static RawType* dynamic_type() { return dynamic_type_; }
416 static RawType* void_type() { return void_type_; }
415 static RawClass* unresolved_class_class() { return unresolved_class_class_; } 417 static RawClass* unresolved_class_class() { return unresolved_class_class_; }
416 static RawClass* type_arguments_class() { return type_arguments_class_; } 418 static RawClass* type_arguments_class() { return type_arguments_class_; }
417 static RawClass* instantiated_type_arguments_class() { 419 static RawClass* instantiated_type_arguments_class() {
418 return instantiated_type_arguments_class_; 420 return instantiated_type_arguments_class_;
419 } 421 }
420 static RawClass* patch_class_class() { return patch_class_class_; } 422 static RawClass* patch_class_class() { return patch_class_class_; }
421 static RawClass* function_class() { return function_class_; } 423 static RawClass* function_class() { return function_class_; }
422 static RawClass* closure_data_class() { return closure_data_class_; } 424 static RawClass* closure_data_class() { return closure_data_class_; }
423 static RawClass* redirection_data_class() { return redirection_data_class_; } 425 static RawClass* redirection_data_class() { return redirection_data_class_; }
424 static RawClass* field_class() { return field_class_; } 426 static RawClass* field_class() { return field_class_; }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 static cpp_vtable handle_vtable_; 554 static cpp_vtable handle_vtable_;
553 static cpp_vtable builtin_vtables_[kNumPredefinedCids]; 555 static cpp_vtable builtin_vtables_[kNumPredefinedCids];
554 556
555 // The static values below are singletons shared between the different 557 // The static values below are singletons shared between the different
556 // isolates. They are all allocated in the non-GC'd Dart::vm_isolate_. 558 // isolates. They are all allocated in the non-GC'd Dart::vm_isolate_.
557 static RawObject* null_; 559 static RawObject* null_;
558 560
559 static RawClass* class_class_; // Class of the Class vm object. 561 static RawClass* class_class_; // Class of the Class vm object.
560 static RawClass* dynamic_class_; // Class of the 'dynamic' type. 562 static RawClass* dynamic_class_; // Class of the 'dynamic' type.
561 static RawClass* void_class_; // Class of the 'void' type. 563 static RawClass* void_class_; // Class of the 'void' type.
564 static RawType* dynamic_type_; // Class of the 'dynamic' type.
565 static RawType* void_type_; // Class of the 'void' type.
562 static RawClass* unresolved_class_class_; // Class of UnresolvedClass. 566 static RawClass* unresolved_class_class_; // Class of UnresolvedClass.
563 // Class of the TypeArguments vm object. 567 // Class of the TypeArguments vm object.
564 static RawClass* type_arguments_class_; 568 static RawClass* type_arguments_class_;
565 static RawClass* instantiated_type_arguments_class_; // Class of Inst..ments. 569 static RawClass* instantiated_type_arguments_class_; // Class of Inst..ments.
566 static RawClass* patch_class_class_; // Class of the PatchClass vm object. 570 static RawClass* patch_class_class_; // Class of the PatchClass vm object.
567 static RawClass* function_class_; // Class of the Function vm object. 571 static RawClass* function_class_; // Class of the Function vm object.
568 static RawClass* closure_data_class_; // Class of ClosureData vm obj. 572 static RawClass* closure_data_class_; // Class of ClosureData vm obj.
569 static RawClass* redirection_data_class_; // Class of RedirectionData vm obj. 573 static RawClass* redirection_data_class_; // Class of RedirectionData vm obj.
570 static RawClass* field_class_; // Class of the Field vm object. 574 static RawClass* field_class_; // Class of the Field vm object.
571 static RawClass* literal_token_class_; // Class of LiteralToken vm object. 575 static RawClass* literal_token_class_; // Class of LiteralToken vm object.
(...skipping 5477 matching lines...) Expand 10 before | Expand all | Expand 10 after
6049 6053
6050 6054
6051 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6055 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6052 intptr_t index) { 6056 intptr_t index) {
6053 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6057 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6054 } 6058 }
6055 6059
6056 } // namespace dart 6060 } // namespace dart
6057 6061
6058 #endif // VM_OBJECT_H_ 6062 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698