Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1516 const Function& other, | 1516 const Function& other, |
| 1517 const AbstractTypeArguments& other_type_arguments, | 1517 const AbstractTypeArguments& other_type_arguments, |
| 1518 Error* malformed_error) const { | 1518 Error* malformed_error) const { |
| 1519 return TypeTest(kIsMoreSpecificThan, | 1519 return TypeTest(kIsMoreSpecificThan, |
| 1520 type_arguments, | 1520 type_arguments, |
| 1521 other, | 1521 other, |
| 1522 other_type_arguments, | 1522 other_type_arguments, |
| 1523 malformed_error); | 1523 malformed_error); |
| 1524 } | 1524 } |
| 1525 | 1525 |
| 1526 // Returns true if this function represents a getter. | |
|
regis
2012/08/10 22:41:08
You should comment that implicit getters are not r
hausner
2012/08/10 22:51:01
Done. I just wanted to replace the "kind == kGette
| |
| 1527 bool IsGetterFunction() const { | |
| 1528 return kind() == RawFunction::kGetterFunction; | |
| 1529 } | |
| 1530 | |
| 1531 // Returns true if this function represents a setter. | |
| 1532 bool IsSetterFunction() const { | |
|
regis
2012/08/10 22:41:08
You should comment that implicit setters are not r
hausner
2012/08/10 22:51:01
Done.
| |
| 1533 return kind() == RawFunction::kSetterFunction; | |
| 1534 } | |
| 1535 | |
| 1526 // Returns true if this function represents a (possibly implicit) closure | 1536 // Returns true if this function represents a (possibly implicit) closure |
| 1527 // function. | 1537 // function. |
| 1528 bool IsClosureFunction() const { | 1538 bool IsClosureFunction() const { |
| 1529 return kind() == RawFunction::kClosureFunction; | 1539 return kind() == RawFunction::kClosureFunction; |
| 1530 } | 1540 } |
| 1531 | 1541 |
| 1532 // Returns true if this function represents an implicit closure function. | 1542 // Returns true if this function represents an implicit closure function. |
| 1533 bool IsImplicitClosureFunction() const; | 1543 bool IsImplicitClosureFunction() const; |
| 1534 | 1544 |
| 1535 // Returns true if this function represents a non implicit closure function. | 1545 // Returns true if this function represents a non implicit closure function. |
| (...skipping 3887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5423 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5433 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5424 return false; | 5434 return false; |
| 5425 } | 5435 } |
| 5426 } | 5436 } |
| 5427 return true; | 5437 return true; |
| 5428 } | 5438 } |
| 5429 | 5439 |
| 5430 } // namespace dart | 5440 } // namespace dart |
| 5431 | 5441 |
| 5432 #endif // VM_OBJECT_H_ | 5442 #endif // VM_OBJECT_H_ |
| OLD | NEW |