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 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 } | 1373 } |
1374 void set_deoptimization_counter(intptr_t value) const { | 1374 void set_deoptimization_counter(intptr_t value) const { |
1375 raw_ptr()->deoptimization_counter_ = value; | 1375 raw_ptr()->deoptimization_counter_ = value; |
1376 } | 1376 } |
1377 | 1377 |
1378 bool is_optimizable() const { | 1378 bool is_optimizable() const { |
1379 return raw_ptr()->is_optimizable_; | 1379 return raw_ptr()->is_optimizable_; |
1380 } | 1380 } |
1381 void set_is_optimizable(bool value) const; | 1381 void set_is_optimizable(bool value) const; |
1382 | 1382 |
| 1383 bool is_native() const { return raw_ptr()->is_native_; } |
| 1384 void set_is_native(bool value) const; |
| 1385 |
1383 bool HasOptimizedCode() const; | 1386 bool HasOptimizedCode() const; |
1384 | 1387 |
1385 intptr_t NumberOfParameters() const; | 1388 intptr_t NumberOfParameters() const; |
1386 | 1389 |
1387 bool AreValidArgumentCounts(int num_arguments, int num_named_arguments) const; | 1390 bool AreValidArgumentCounts(int num_arguments, int num_named_arguments) const; |
1388 bool AreValidArguments(int num_arguments, const Array& argument_names) const; | 1391 bool AreValidArguments(int num_arguments, const Array& argument_names) const; |
1389 | 1392 |
1390 // Fully qualified name uniquely identifying the function under gdb and during | 1393 // Fully qualified name uniquely identifying the function under gdb and during |
1391 // ast printing. The special ':' character, if present, is replaced by '_'. | 1394 // ast printing. The special ':' character, if present, is replaced by '_'. |
1392 const char* ToFullyQualifiedCString() const; | 1395 const char* ToFullyQualifiedCString() const; |
(...skipping 3582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4975 } | 4978 } |
4976 | 4979 |
4977 | 4980 |
4978 intptr_t Stackmap::SizeInBits() const { | 4981 intptr_t Stackmap::SizeInBits() const { |
4979 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 4982 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
4980 } | 4983 } |
4981 | 4984 |
4982 } // namespace dart | 4985 } // namespace dart |
4983 | 4986 |
4984 #endif // VM_OBJECT_H_ | 4987 #endif // VM_OBJECT_H_ |
OLD | NEW |