| 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 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 } | 1391 } |
| 1392 void set_deoptimization_counter(intptr_t value) const { | 1392 void set_deoptimization_counter(intptr_t value) const { |
| 1393 raw_ptr()->deoptimization_counter_ = value; | 1393 raw_ptr()->deoptimization_counter_ = value; |
| 1394 } | 1394 } |
| 1395 | 1395 |
| 1396 bool is_optimizable() const { | 1396 bool is_optimizable() const { |
| 1397 return raw_ptr()->is_optimizable_; | 1397 return raw_ptr()->is_optimizable_; |
| 1398 } | 1398 } |
| 1399 void set_is_optimizable(bool value) const; | 1399 void set_is_optimizable(bool value) const; |
| 1400 | 1400 |
| 1401 bool is_compiling() const { |
| 1402 return raw_ptr()->is_compiling_; |
| 1403 } |
| 1404 void set_is_compiling(bool value) const { |
| 1405 raw_ptr()->is_compiling_ = value; |
| 1406 } |
| 1407 |
| 1401 bool HasOptimizedCode() const; | 1408 bool HasOptimizedCode() const; |
| 1402 | 1409 |
| 1403 intptr_t NumberOfParameters() const; | 1410 intptr_t NumberOfParameters() const; |
| 1404 | 1411 |
| 1405 bool AreValidArgumentCounts(int num_arguments, int num_named_arguments) const; | 1412 bool AreValidArgumentCounts(int num_arguments, int num_named_arguments) const; |
| 1406 bool AreValidArguments(int num_arguments, const Array& argument_names) const; | 1413 bool AreValidArguments(int num_arguments, const Array& argument_names) const; |
| 1407 | 1414 |
| 1408 // Fully qualified name uniquely identifying the function under gdb and during | 1415 // Fully qualified name uniquely identifying the function under gdb and during |
| 1409 // ast printing. The special ':' character, if present, is replaced by '_'. | 1416 // ast printing. The special ':' character, if present, is replaced by '_'. |
| 1410 const char* ToFullyQualifiedCString() const; | 1417 const char* ToFullyQualifiedCString() const; |
| (...skipping 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3951 } | 3958 } |
| 3952 | 3959 |
| 3953 | 3960 |
| 3954 intptr_t Stackmap::SizeInBits() const { | 3961 intptr_t Stackmap::SizeInBits() const { |
| 3955 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 3962 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
| 3956 } | 3963 } |
| 3957 | 3964 |
| 3958 } // namespace dart | 3965 } // namespace dart |
| 3959 | 3966 |
| 3960 #endif // VM_OBJECT_H_ | 3967 #endif // VM_OBJECT_H_ |
| OLD | NEW |