Chromium Code Reviews| 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 484 RawContextScope* context_scope_; | 484 RawContextScope* context_scope_; |
| 485 RawFunction* parent_function_; // Enclosing function of this local function. | 485 RawFunction* parent_function_; // Enclosing function of this local function. |
| 486 RawClass* signature_class_; // Only for closure or signature function. | 486 RawClass* signature_class_; // Only for closure or signature function. |
| 487 RawCode* closure_allocation_stub_; // Stub code for allocation of closures. | 487 RawCode* closure_allocation_stub_; // Stub code for allocation of closures. |
| 488 RawFunction* implicit_closure_function_; // Implicit closure function. | 488 RawFunction* implicit_closure_function_; // Implicit closure function. |
| 489 RawObject** to() { | 489 RawObject** to() { |
| 490 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_); | 490 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_); |
| 491 } | 491 } |
| 492 | 492 |
| 493 intptr_t token_index_; | 493 intptr_t token_index_; |
| 494 intptr_t end_token_index_; | |
|
siva
2012/01/18 01:32:03
This new field needs to be written out and read in
hausner
2012/01/18 23:26:38
Good catch. Done.
| |
| 494 intptr_t num_fixed_parameters_; | 495 intptr_t num_fixed_parameters_; |
| 495 intptr_t num_optional_parameters_; | 496 intptr_t num_optional_parameters_; |
| 496 intptr_t invocation_counter_; | 497 intptr_t invocation_counter_; |
| 497 intptr_t deoptimization_counter_; | 498 intptr_t deoptimization_counter_; |
| 498 Kind kind_; | 499 Kind kind_; |
| 499 bool is_static_; | 500 bool is_static_; |
| 500 bool is_const_; | 501 bool is_const_; |
| 501 bool is_optimizable_; | 502 bool is_optimizable_; |
| 502 }; | 503 }; |
| 503 | 504 |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 996 intptr_t type_; // Uninitialized, simple or complex. | 997 intptr_t type_; // Uninitialized, simple or complex. |
| 997 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 998 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 998 | 999 |
| 999 // Variable length data follows here. | 1000 // Variable length data follows here. |
| 1000 uint8_t data_[0]; | 1001 uint8_t data_[0]; |
| 1001 }; | 1002 }; |
| 1002 | 1003 |
| 1003 } // namespace dart | 1004 } // namespace dart |
| 1004 | 1005 |
| 1005 #endif // VM_RAW_OBJECT_H_ | 1006 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |