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

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

Issue 22389004: Allows compiler bailout to handle errors of any type. (Closed) Base URL: http://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 | « runtime/vm/compiler.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 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 397
398 static const Smi& smi_illegal_cid() { 398 static const Smi& smi_illegal_cid() {
399 ASSERT(smi_illegal_cid_ != NULL); 399 ASSERT(smi_illegal_cid_ != NULL);
400 return *smi_illegal_cid_; 400 return *smi_illegal_cid_;
401 } 401 }
402 static const LanguageError& snapshot_writer_error() { 402 static const LanguageError& snapshot_writer_error() {
403 ASSERT(snapshot_writer_error_ != NULL); 403 ASSERT(snapshot_writer_error_ != NULL);
404 return *snapshot_writer_error_; 404 return *snapshot_writer_error_;
405 } 405 }
406 406
407 static const LanguageError& branch_offset_error() {
408 ASSERT(branch_offset_error_ != NULL);
409 return *branch_offset_error_;
410 }
411
407 static RawClass* class_class() { return class_class_; } 412 static RawClass* class_class() { return class_class_; }
408 static RawClass* null_class() { return null_class_; } 413 static RawClass* null_class() { return null_class_; }
409 static RawClass* dynamic_class() { return dynamic_class_; } 414 static RawClass* dynamic_class() { return dynamic_class_; }
410 static RawClass* void_class() { return void_class_; } 415 static RawClass* void_class() { return void_class_; }
411 static RawClass* unresolved_class_class() { return unresolved_class_class_; } 416 static RawClass* unresolved_class_class() { return unresolved_class_class_; }
412 static RawClass* type_arguments_class() { return type_arguments_class_; } 417 static RawClass* type_arguments_class() { return type_arguments_class_; }
413 static RawClass* instantiated_type_arguments_class() { 418 static RawClass* instantiated_type_arguments_class() {
414 return instantiated_type_arguments_class_; 419 return instantiated_type_arguments_class_;
415 } 420 }
416 static RawClass* patch_class_class() { return patch_class_class_; } 421 static RawClass* patch_class_class() { return patch_class_class_; }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 static AbstractTypeArguments* null_abstract_type_arguments_; 602 static AbstractTypeArguments* null_abstract_type_arguments_;
598 static Array* empty_array_; 603 static Array* empty_array_;
599 static Instance* sentinel_; 604 static Instance* sentinel_;
600 static Instance* transition_sentinel_; 605 static Instance* transition_sentinel_;
601 static Instance* unknown_constant_; 606 static Instance* unknown_constant_;
602 static Instance* non_constant_; 607 static Instance* non_constant_;
603 static Bool* bool_true_; 608 static Bool* bool_true_;
604 static Bool* bool_false_; 609 static Bool* bool_false_;
605 static Smi* smi_illegal_cid_; 610 static Smi* smi_illegal_cid_;
606 static LanguageError* snapshot_writer_error_; 611 static LanguageError* snapshot_writer_error_;
612 static LanguageError* branch_offset_error_;
607 613
608 friend void ClassTable::Register(const Class& cls); 614 friend void ClassTable::Register(const Class& cls);
609 friend void RawObject::Validate(Isolate* isolate) const; 615 friend void RawObject::Validate(Isolate* isolate) const;
610 friend class Closure; 616 friend class Closure;
611 friend class SnapshotReader; 617 friend class SnapshotReader;
612 friend class OneByteString; 618 friend class OneByteString;
613 friend class TwoByteString; 619 friend class TwoByteString;
614 friend class ExternalOneByteString; 620 friend class ExternalOneByteString;
615 friend class ExternalTwoByteString; 621 friend class ExternalTwoByteString;
616 friend class Isolate; 622 friend class Isolate;
(...skipping 5430 matching lines...) Expand 10 before | Expand all | Expand 10 after
6047 6053
6048 6054
6049 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6055 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6050 intptr_t index) { 6056 intptr_t index) {
6051 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6057 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6052 } 6058 }
6053 6059
6054 } // namespace dart 6060 } // namespace dart
6055 6061
6056 #endif // VM_OBJECT_H_ 6062 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698