| 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 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1453 return raw_ptr()->is_optimizable_; | 1453 return raw_ptr()->is_optimizable_; |
| 1454 } | 1454 } |
| 1455 void set_is_optimizable(bool value) const; | 1455 void set_is_optimizable(bool value) const; |
| 1456 | 1456 |
| 1457 bool is_native() const { return raw_ptr()->is_native_; } | 1457 bool is_native() const { return raw_ptr()->is_native_; } |
| 1458 void set_is_native(bool value) const; | 1458 void set_is_native(bool value) const; |
| 1459 | 1459 |
| 1460 bool HasOptimizedCode() const; | 1460 bool HasOptimizedCode() const; |
| 1461 | 1461 |
| 1462 intptr_t NumberOfParameters() const; | 1462 intptr_t NumberOfParameters() const; |
| 1463 intptr_t NumberOfImplicitParameters() const; |
| 1463 | 1464 |
| 1464 bool AreValidArgumentCounts(int num_arguments, int num_named_arguments) const; | 1465 // Returns true if the argument counts are valid for calling this function. |
| 1465 bool AreValidArguments(int num_arguments, const Array& argument_names) const; | 1466 // Otherwise, it returns false and the reason (if error_message is not NULL). |
| 1467 bool AreValidArgumentCounts(int num_arguments, |
| 1468 int num_named_arguments, |
| 1469 String* error_message) const; |
| 1470 |
| 1471 // Returns true if the total argument count and the names of optional |
| 1472 // arguments are valid for calling this function. |
| 1473 // Otherwise, it returns false and the reason (if error_message is not NULL). |
| 1474 bool AreValidArguments(int num_arguments, |
| 1475 const Array& argument_names, |
| 1476 String* error_message) const; |
| 1466 | 1477 |
| 1467 // Fully qualified name uniquely identifying the function under gdb and during | 1478 // Fully qualified name uniquely identifying the function under gdb and during |
| 1468 // ast printing. The special ':' character, if present, is replaced by '_'. | 1479 // ast printing. The special ':' character, if present, is replaced by '_'. |
| 1469 const char* ToFullyQualifiedCString() const; | 1480 const char* ToFullyQualifiedCString() const; |
| 1470 | 1481 |
| 1471 // Returns true if this function has parameters that are compatible with the | 1482 // Returns true if this function has parameters that are compatible with the |
| 1472 // parameters of the other function in order for this function to override the | 1483 // parameters of the other function in order for this function to override the |
| 1473 // other function. Parameter types are ignored. | 1484 // other function. Parameter types are ignored. |
| 1474 bool HasCompatibleParametersWith(const Function& other) const; | 1485 bool HasCompatibleParametersWith(const Function& other) const; |
| 1475 | 1486 |
| (...skipping 3643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5119 } | 5130 } |
| 5120 | 5131 |
| 5121 | 5132 |
| 5122 intptr_t Stackmap::SizeInBits() const { | 5133 intptr_t Stackmap::SizeInBits() const { |
| 5123 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 5134 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
| 5124 } | 5135 } |
| 5125 | 5136 |
| 5126 } // namespace dart | 5137 } // namespace dart |
| 5127 | 5138 |
| 5128 #endif // VM_OBJECT_H_ | 5139 #endif // VM_OBJECT_H_ |
| OLD | NEW |