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

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

Issue 379353003: Implement Evaluate without creating new classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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_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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. 600 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }.
601 kConstructor, 601 kConstructor,
602 kImplicitGetter, // represents an implicit getter for fields. 602 kImplicitGetter, // represents an implicit getter for fields.
603 kImplicitSetter, // represents an implicit setter for fields. 603 kImplicitSetter, // represents an implicit setter for fields.
604 kImplicitStaticFinalGetter, // represents an implicit getter for static 604 kImplicitStaticFinalGetter, // represents an implicit getter for static
605 // final fields (incl. static const fields). 605 // final fields (incl. static const fields).
606 kStaticInitializer, // used in implicit static getters. 606 kStaticInitializer, // used in implicit static getters.
607 kMethodExtractor, // converts method into implicit closure on the receiver. 607 kMethodExtractor, // converts method into implicit closure on the receiver.
608 kNoSuchMethodDispatcher, // invokes noSuchMethod. 608 kNoSuchMethodDispatcher, // invokes noSuchMethod.
609 kInvokeFieldDispatcher, // invokes a field as a closure. 609 kInvokeFieldDispatcher, // invokes a field as a closure.
610 kEvalFunction,
610 }; 611 };
611 612
612 private: 613 private:
613 // So that the MarkingVisitor::DetachCode can null out the code fields. 614 // So that the MarkingVisitor::DetachCode can null out the code fields.
614 friend class MarkingVisitor; 615 friend class MarkingVisitor;
615 friend class Class; 616 friend class Class;
616 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); 617 RAW_HEAP_OBJECT_IMPLEMENTATION(Function);
617 static bool SkipCode(RawFunction* raw_fun); 618 static bool SkipCode(RawFunction* raw_fun);
618 619
619 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 620 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1896 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1897 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1897 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 1898 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
1898 kTypedDataInt8ArrayViewCid + 15); 1899 kTypedDataInt8ArrayViewCid + 15);
1899 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1900 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1900 return (kNullCid - kTypedDataInt8ArrayCid); 1901 return (kNullCid - kTypedDataInt8ArrayCid);
1901 } 1902 }
1902 1903
1903 } // namespace dart 1904 } // namespace dart
1904 1905
1905 #endif // VM_RAW_OBJECT_H_ 1906 #endif // VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698