| 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 RawContextScope* context_scope_; | 487 RawContextScope* context_scope_; |
| 488 RawFunction* parent_function_; // Enclosing function of this local function. | 488 RawFunction* parent_function_; // Enclosing function of this local function. |
| 489 RawClass* signature_class_; // Only for closure or signature function. | 489 RawClass* signature_class_; // Only for closure or signature function. |
| 490 RawCode* closure_allocation_stub_; // Stub code for allocation of closures. | 490 RawCode* closure_allocation_stub_; // Stub code for allocation of closures. |
| 491 RawFunction* implicit_closure_function_; // Implicit closure function. | 491 RawFunction* implicit_closure_function_; // Implicit closure function. |
| 492 RawObject** to() { | 492 RawObject** to() { |
| 493 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_); | 493 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_); |
| 494 } | 494 } |
| 495 | 495 |
| 496 intptr_t token_index_; | 496 intptr_t token_index_; |
| 497 intptr_t end_token_index_; |
| 497 intptr_t num_fixed_parameters_; | 498 intptr_t num_fixed_parameters_; |
| 498 intptr_t num_optional_parameters_; | 499 intptr_t num_optional_parameters_; |
| 499 intptr_t invocation_counter_; | 500 intptr_t invocation_counter_; |
| 500 intptr_t deoptimization_counter_; | 501 intptr_t deoptimization_counter_; |
| 501 Kind kind_; | 502 Kind kind_; |
| 502 bool is_static_; | 503 bool is_static_; |
| 503 bool is_const_; | 504 bool is_const_; |
| 504 bool is_optimizable_; | 505 bool is_optimizable_; |
| 505 }; | 506 }; |
| 506 | 507 |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 intptr_t type_; // Uninitialized, simple or complex. | 1017 intptr_t type_; // Uninitialized, simple or complex. |
| 1017 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1018 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 1018 | 1019 |
| 1019 // Variable length data follows here. | 1020 // Variable length data follows here. |
| 1020 uint8_t data_[0]; | 1021 uint8_t data_[0]; |
| 1021 }; | 1022 }; |
| 1022 | 1023 |
| 1023 } // namespace dart | 1024 } // namespace dart |
| 1024 | 1025 |
| 1025 #endif // VM_RAW_OBJECT_H_ | 1026 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |