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

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

Issue 910313002: Rename IsConstructor to IsGenerativeConstructor. (Closed) Base URL: https://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/native_arguments.h ('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 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1869 RawFunction::Kind kind() const { 1869 RawFunction::Kind kind() const {
1870 return KindBits::decode(raw_ptr()->kind_tag_); 1870 return KindBits::decode(raw_ptr()->kind_tag_);
1871 } 1871 }
1872 1872
1873 RawFunction::AsyncModifier modifier() const { 1873 RawFunction::AsyncModifier modifier() const {
1874 return ModifierBits::decode(raw_ptr()->kind_tag_); 1874 return ModifierBits::decode(raw_ptr()->kind_tag_);
1875 } 1875 }
1876 1876
1877 static const char* KindToCString(RawFunction::Kind kind); 1877 static const char* KindToCString(RawFunction::Kind kind);
1878 1878
1879 bool IsConstructor() const { 1879 bool IsGenerativeConstructor() const {
1880 return (kind() == RawFunction::kConstructor) && !is_static(); 1880 return (kind() == RawFunction::kConstructor) && !is_static();
1881 } 1881 }
1882 bool IsImplicitConstructor() const; 1882 bool IsImplicitConstructor() const;
1883 bool IsFactory() const { 1883 bool IsFactory() const {
1884 return (kind() == RawFunction::kConstructor) && is_static(); 1884 return (kind() == RawFunction::kConstructor) && is_static();
1885 } 1885 }
1886 bool IsDynamicFunction() const { 1886 bool IsDynamicFunction() const {
1887 if (is_static() || is_abstract()) { 1887 if (is_static() || is_abstract()) {
1888 return false; 1888 return false;
1889 } 1889 }
(...skipping 5910 matching lines...) Expand 10 before | Expand all | Expand 10 after
7800 7800
7801 7801
7802 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7802 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7803 intptr_t index) { 7803 intptr_t index) {
7804 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7804 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7805 } 7805 }
7806 7806
7807 } // namespace dart 7807 } // namespace dart
7808 7808
7809 #endif // VM_OBJECT_H_ 7809 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/native_arguments.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698