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

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

Issue 17315008: Optimizing noSuchMethod invocation with no arguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/resolver.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_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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 kRegularFunction, 590 kRegularFunction,
591 kClosureFunction, 591 kClosureFunction,
592 kSignatureFunction, // represents a signature only without actual code. 592 kSignatureFunction, // represents a signature only without actual code.
593 kGetterFunction, // represents getter functions e.g: get foo() { .. }. 593 kGetterFunction, // represents getter functions e.g: get foo() { .. }.
594 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }. 594 kSetterFunction, // represents setter functions e.g: set foo(..) { .. }.
595 kConstructor, 595 kConstructor,
596 kImplicitGetter, // represents an implicit getter for fields. 596 kImplicitGetter, // represents an implicit getter for fields.
597 kImplicitSetter, // represents an implicit setter for fields. 597 kImplicitSetter, // represents an implicit setter for fields.
598 kConstImplicitGetter, // represents an implicit const getter for fields. 598 kConstImplicitGetter, // represents an implicit const getter for fields.
599 kMethodExtractor, // converts method into implicit closure on the receiver. 599 kMethodExtractor, // converts method into implicit closure on the receiver.
600 kNoSuchMethodDispatcher, // invokes noSuchMethod.
600 }; 601 };
601 602
602 private: 603 private:
603 friend class Class; 604 friend class Class;
604 RAW_HEAP_OBJECT_IMPLEMENTATION(Function); 605 RAW_HEAP_OBJECT_IMPLEMENTATION(Function);
605 606
606 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 607 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
607 RawString* name_; 608 RawString* name_;
608 RawObject* owner_; // Class or patch class or mixin class 609 RawObject* owner_; // Class or patch class or mixin class
609 // where this function is defined. 610 // where this function is defined.
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 // Make sure this is updated when new TypedData types are added. 1689 // Make sure this is updated when new TypedData types are added.
1689 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); 1690 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12);
1690 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); 1691 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13);
1691 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); 1692 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12);
1692 return (kNullCid - kTypedDataInt8ArrayCid); 1693 return (kNullCid - kTypedDataInt8ArrayCid);
1693 } 1694 }
1694 1695
1695 } // namespace dart 1696 } // namespace dart
1696 1697
1697 #endif // VM_RAW_OBJECT_H_ 1698 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698