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

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

Issue 51123003: VM: Fix checked mode crash (issue 13831). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 kRegularFunction, 594 kRegularFunction,
595 kClosureFunction, 595 kClosureFunction,
596 kSignatureFunction, // represents a signature only without actual code. 596 kSignatureFunction, // represents a signature only without actual code.
597 kGetterFunction, // represents getter functions e.g: get foo() { .. }. 597 kGetterFunction, // represents getter functions e.g: get foo() { .. }.
598 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. 598 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }.
599 kConstructor, 599 kConstructor,
600 kImplicitGetter, // represents an implicit getter for fields. 600 kImplicitGetter, // represents an implicit getter for fields.
601 kImplicitSetter, // represents an implicit setter for fields. 601 kImplicitSetter, // represents an implicit setter for fields.
602 kImplicitStaticFinalGetter, // represents an implicit getter for static 602 kImplicitStaticFinalGetter, // represents an implicit getter for static
603 // final fields (incl. static const fields). 603 // final fields (incl. static const fields).
604 kStaticInitializer, // used in implicit static getters.
604 kMethodExtractor, // converts method into implicit closure on the receiver. 605 kMethodExtractor, // converts method into implicit closure on the receiver.
605 kNoSuchMethodDispatcher, // invokes noSuchMethod. 606 kNoSuchMethodDispatcher, // invokes noSuchMethod.
606 kInvokeFieldDispatcher, // invokes a field as a closure. 607 kInvokeFieldDispatcher, // invokes a field as a closure.
607 }; 608 };
608 609
609 private: 610 private:
610 friend class Class; 611 friend class Class;
611 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); 612 RAW_HEAP_OBJECT_IMPLEMENTATION(Function);
612 613
613 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 614 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1713 // Make sure this is updated when new TypedData types are added. 1714 // Make sure this is updated when new TypedData types are added.
1714 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); 1715 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12);
1715 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); 1716 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13);
1716 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); 1717 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12);
1717 return (kNullCid - kTypedDataInt8ArrayCid); 1718 return (kNullCid - kTypedDataInt8ArrayCid);
1718 } 1719 }
1719 1720
1720 } // namespace dart 1721 } // namespace dart
1721 1722
1722 #endif // VM_RAW_OBJECT_H_ 1723 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698