| 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_RAW_OBJECT_H_ | 5 #ifndef VM_RAW_OBJECT_H_ |
| 6 #define VM_RAW_OBJECT_H_ | 6 #define VM_RAW_OBJECT_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/snapshot.h" | 10 #include "vm/snapshot.h" |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 RawCode* closure_allocation_stub_; // Stub code for allocation of closures. | 494 RawCode* closure_allocation_stub_; // Stub code for allocation of closures. |
| 495 RawFunction* implicit_closure_function_; // Implicit closure function. | 495 RawFunction* implicit_closure_function_; // Implicit closure function. |
| 496 RawObject** to() { | 496 RawObject** to() { |
| 497 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_); | 497 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_); |
| 498 } | 498 } |
| 499 | 499 |
| 500 intptr_t token_index_; | 500 intptr_t token_index_; |
| 501 intptr_t end_token_index_; | 501 intptr_t end_token_index_; |
| 502 intptr_t num_fixed_parameters_; | 502 intptr_t num_fixed_parameters_; |
| 503 intptr_t num_optional_parameters_; | 503 intptr_t num_optional_parameters_; |
| 504 intptr_t invocation_counter_; | 504 intptr_t usage_counter_; // Incremented while function is running. |
| 505 intptr_t deoptimization_counter_; | 505 intptr_t deoptimization_counter_; |
| 506 Kind kind_; | 506 Kind kind_; |
| 507 bool is_static_; | 507 bool is_static_; |
| 508 bool is_const_; | 508 bool is_const_; |
| 509 bool is_optimizable_; | 509 bool is_optimizable_; |
| 510 }; | 510 }; |
| 511 | 511 |
| 512 | 512 |
| 513 class RawField : public RawObject { | 513 class RawField : public RawObject { |
| 514 RAW_HEAP_OBJECT_IMPLEMENTATION(Field); | 514 RAW_HEAP_OBJECT_IMPLEMENTATION(Field); |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 RawString* target_name_; // Name of target function. | 1098 RawString* target_name_; // Name of target function. |
| 1099 RawArray* ic_data_; // Contains test classes and target function. | 1099 RawArray* ic_data_; // Contains test classes and target function. |
| 1100 intptr_t id_; // Parser node id corresponding to this IC. | 1100 intptr_t id_; // Parser node id corresponding to this IC. |
| 1101 intptr_t num_args_tested_; // Number of arguments tested in IC. | 1101 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 1102 }; | 1102 }; |
| 1103 | 1103 |
| 1104 | 1104 |
| 1105 } // namespace dart | 1105 } // namespace dart |
| 1106 | 1106 |
| 1107 #endif // VM_RAW_OBJECT_H_ | 1107 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |