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

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

Issue 888463004: Add support for sync* and yield (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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/parser.cc ('k') | runtime/vm/symbols.h » ('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_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/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 kImplicitSetter, // represents an implicit setter for fields. 692 kImplicitSetter, // represents an implicit setter for fields.
693 kImplicitStaticFinalGetter, // represents an implicit getter for static 693 kImplicitStaticFinalGetter, // represents an implicit getter for static
694 // final fields (incl. static const fields). 694 // final fields (incl. static const fields).
695 kMethodExtractor, // converts method into implicit closure on the receiver. 695 kMethodExtractor, // converts method into implicit closure on the receiver.
696 kNoSuchMethodDispatcher, // invokes noSuchMethod. 696 kNoSuchMethodDispatcher, // invokes noSuchMethod.
697 kInvokeFieldDispatcher, // invokes a field as a closure. 697 kInvokeFieldDispatcher, // invokes a field as a closure.
698 kIrregexpFunction, // represents a generated irregexp matcher function. 698 kIrregexpFunction, // represents a generated irregexp matcher function.
699 }; 699 };
700 700
701 enum AsyncModifier { 701 enum AsyncModifier {
702 kNoModifier, 702 kNoModifier = 0x0,
703 kAsync, 703 kAsyncBit = 0x1,
704 kGeneratorBit = 0x2,
705 kAsync = kAsyncBit,
706 kSyncGen = kGeneratorBit,
707 kAsyncGen = kAsyncBit | kGeneratorBit,
704 }; 708 };
705 709
706 private: 710 private:
707 // So that the MarkingVisitor::DetachCode can null out the code fields. 711 // So that the MarkingVisitor::DetachCode can null out the code fields.
708 friend class MarkingVisitor; 712 friend class MarkingVisitor;
709 friend class Class; 713 friend class Class;
710 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); 714 RAW_HEAP_OBJECT_IMPLEMENTATION(Function);
711 static bool SkipCode(RawFunction* raw_fun); 715 static bool SkipCode(RawFunction* raw_fun);
712 716
713 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 717 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
2157 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2161 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2158 kTypedDataInt8ArrayViewCid + 15); 2162 kTypedDataInt8ArrayViewCid + 15);
2159 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2163 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2160 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2164 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2161 return (kNullCid - kTypedDataInt8ArrayCid); 2165 return (kNullCid - kTypedDataInt8ArrayCid);
2162 } 2166 }
2163 2167
2164 } // namespace dart 2168 } // namespace dart
2165 2169
2166 #endif // VM_RAW_OBJECT_H_ 2170 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698