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

Side by Side Diff: vm/object.h

Issue 10808064: Rename some of the enum definitions inside classes to avoid conflict with the ObjectKind enum. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
« no previous file with comments | « vm/find_code_object_test.cc ('k') | 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 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 return (kind() == RawFunction::kConstructor) && is_static(); 1400 return (kind() == RawFunction::kConstructor) && is_static();
1401 } 1401 }
1402 bool IsAbstract() const { 1402 bool IsAbstract() const {
1403 return kind() == RawFunction::kAbstract; 1403 return kind() == RawFunction::kAbstract;
1404 } 1404 }
1405 bool IsDynamicFunction() const { 1405 bool IsDynamicFunction() const {
1406 if (is_static()) { 1406 if (is_static()) {
1407 return false; 1407 return false;
1408 } 1408 }
1409 switch (kind()) { 1409 switch (kind()) {
1410 case RawFunction::kFunction: 1410 case RawFunction::kRegularFunction:
1411 case RawFunction::kGetterFunction: 1411 case RawFunction::kGetterFunction:
1412 case RawFunction::kSetterFunction: 1412 case RawFunction::kSetterFunction:
1413 case RawFunction::kImplicitGetter: 1413 case RawFunction::kImplicitGetter:
1414 case RawFunction::kImplicitSetter: 1414 case RawFunction::kImplicitSetter:
1415 return true; 1415 return true;
1416 case RawFunction::kClosureFunction: 1416 case RawFunction::kClosureFunction:
1417 case RawFunction::kConstructor: 1417 case RawFunction::kConstructor:
1418 case RawFunction::kConstImplicitGetter: 1418 case RawFunction::kConstImplicitGetter:
1419 case RawFunction::kAbstract: 1419 case RawFunction::kAbstract:
1420 return false; 1420 return false;
1421 default: 1421 default:
1422 UNREACHABLE(); 1422 UNREACHABLE();
1423 return false; 1423 return false;
1424 } 1424 }
1425 } 1425 }
1426 bool IsStaticFunction() const { 1426 bool IsStaticFunction() const {
1427 if (!is_static()) { 1427 if (!is_static()) {
1428 return false; 1428 return false;
1429 } 1429 }
1430 switch (kind()) { 1430 switch (kind()) {
1431 case RawFunction::kFunction: 1431 case RawFunction::kRegularFunction:
1432 case RawFunction::kGetterFunction: 1432 case RawFunction::kGetterFunction:
1433 case RawFunction::kSetterFunction: 1433 case RawFunction::kSetterFunction:
1434 case RawFunction::kImplicitGetter: 1434 case RawFunction::kImplicitGetter:
1435 case RawFunction::kImplicitSetter: 1435 case RawFunction::kImplicitSetter:
1436 case RawFunction::kConstImplicitGetter: 1436 case RawFunction::kConstImplicitGetter:
1437 return true; 1437 return true;
1438 case RawFunction::kClosureFunction: 1438 case RawFunction::kClosureFunction:
1439 case RawFunction::kConstructor: 1439 case RawFunction::kConstructor:
1440 return false; 1440 return false;
1441 default: 1441 default:
(...skipping 3761 matching lines...) Expand 10 before | Expand all | Expand 10 after
5203 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5203 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5204 return false; 5204 return false;
5205 } 5205 }
5206 } 5206 }
5207 return true; 5207 return true;
5208 } 5208 }
5209 5209
5210 } // namespace dart 5210 } // namespace dart
5211 5211
5212 #endif // VM_OBJECT_H_ 5212 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/find_code_object_test.cc ('k') | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698