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

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

Issue 3001883002: [vm] Read interface_target_reference from kernel binaries (Closed)
Patch Set: Add assertion Created 3 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
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.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 #ifndef RUNTIME_VM_OBJECT_H_ 5 #ifndef RUNTIME_VM_OBJECT_H_
6 #define RUNTIME_VM_OBJECT_H_ 6 #define RUNTIME_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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 return *null_array_; 353 return *null_array_;
354 } 354 }
355 static const String& null_string() { 355 static const String& null_string() {
356 ASSERT(null_string_ != NULL); 356 ASSERT(null_string_ != NULL);
357 return *null_string_; 357 return *null_string_;
358 } 358 }
359 static const Instance& null_instance() { 359 static const Instance& null_instance() {
360 ASSERT(null_instance_ != NULL); 360 ASSERT(null_instance_ != NULL);
361 return *null_instance_; 361 return *null_instance_;
362 } 362 }
363 static const Function& null_function() {
364 ASSERT(null_function_ != NULL);
365 return *null_function_;
366 }
363 static const TypeArguments& null_type_arguments() { 367 static const TypeArguments& null_type_arguments() {
364 ASSERT(null_type_arguments_ != NULL); 368 ASSERT(null_type_arguments_ != NULL);
365 return *null_type_arguments_; 369 return *null_type_arguments_;
366 } 370 }
367 static const TypeArguments& empty_type_arguments() { 371 static const TypeArguments& empty_type_arguments() {
368 ASSERT(empty_type_arguments_ != NULL); 372 ASSERT(empty_type_arguments_ != NULL);
369 return *empty_type_arguments_; 373 return *empty_type_arguments_;
370 } 374 }
371 375
372 static const Array& empty_array() { 376 static const Array& empty_array() {
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 static RawClass* language_error_class_; // Class of LanguageError. 803 static RawClass* language_error_class_; // Class of LanguageError.
800 static RawClass* unhandled_exception_class_; // Class of UnhandledException. 804 static RawClass* unhandled_exception_class_; // Class of UnhandledException.
801 static RawClass* unwind_error_class_; // Class of UnwindError. 805 static RawClass* unwind_error_class_; // Class of UnwindError.
802 806
803 // The static values below are read-only handle pointers for singleton 807 // The static values below are read-only handle pointers for singleton
804 // objects that are shared between the different isolates. 808 // objects that are shared between the different isolates.
805 static Object* null_object_; 809 static Object* null_object_;
806 static Array* null_array_; 810 static Array* null_array_;
807 static String* null_string_; 811 static String* null_string_;
808 static Instance* null_instance_; 812 static Instance* null_instance_;
813 static Function* null_function_;
809 static TypeArguments* null_type_arguments_; 814 static TypeArguments* null_type_arguments_;
810 static TypeArguments* empty_type_arguments_; 815 static TypeArguments* empty_type_arguments_;
811 static Array* empty_array_; 816 static Array* empty_array_;
812 static Array* zero_array_; 817 static Array* zero_array_;
813 static Context* empty_context_; 818 static Context* empty_context_;
814 static ContextScope* empty_context_scope_; 819 static ContextScope* empty_context_scope_;
815 static ObjectPool* empty_object_pool_; 820 static ObjectPool* empty_object_pool_;
816 static PcDescriptors* empty_descriptors_; 821 static PcDescriptors* empty_descriptors_;
817 static LocalVarDescriptors* empty_var_descriptors_; 822 static LocalVarDescriptors* empty_var_descriptors_;
818 static ExceptionHandlers* empty_exception_handlers_; 823 static ExceptionHandlers* empty_exception_handlers_;
(...skipping 8187 matching lines...) Expand 10 before | Expand all | Expand 10 after
9006 9011
9007 inline void TypeArguments::SetHash(intptr_t value) const { 9012 inline void TypeArguments::SetHash(intptr_t value) const {
9008 // This is only safe because we create a new Smi, which does not cause 9013 // This is only safe because we create a new Smi, which does not cause
9009 // heap allocation. 9014 // heap allocation.
9010 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 9015 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
9011 } 9016 }
9012 9017
9013 } // namespace dart 9018 } // namespace dart
9014 9019
9015 #endif // RUNTIME_VM_OBJECT_H_ 9020 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698