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_STORE_H_ | 5 #ifndef VM_OBJECT_STORE_H_ |
6 #define VM_OBJECT_STORE_H_ | 6 #define VM_OBJECT_STORE_H_ |
7 | 7 |
8 #include "vm/object.h" | 8 #include "vm/object.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
372 out_of_memory_ = value.raw(); | 372 out_of_memory_ = value.raw(); |
373 } | 373 } |
374 | 374 |
375 RawStacktrace* preallocated_stack_trace() const { | 375 RawStacktrace* preallocated_stack_trace() const { |
376 return preallocated_stack_trace_; | 376 return preallocated_stack_trace_; |
377 } | 377 } |
378 void set_preallocated_stack_trace(const Stacktrace& value) { | 378 void set_preallocated_stack_trace(const Stacktrace& value) { |
379 preallocated_stack_trace_ = value.raw(); | 379 preallocated_stack_trace_ = value.raw(); |
380 } | 380 } |
381 | 381 |
382 RawArray* keyword_symbols() const { return keyword_symbols_; } | |
383 void set_keyword_symbols(const Array& value) { | |
384 keyword_symbols_ = value.raw(); | |
385 } | |
386 void InitKeywordTable(); | |
387 | |
388 RawFunction* receive_port_create_function() const { | 382 RawFunction* receive_port_create_function() const { |
389 return receive_port_create_function_; | 383 return receive_port_create_function_; |
390 } | 384 } |
391 void set_receive_port_create_function(const Function& function) { | 385 void set_receive_port_create_function(const Function& function) { |
392 receive_port_create_function_ = function.raw(); | 386 receive_port_create_function_ = function.raw(); |
393 } | 387 } |
394 | 388 |
395 RawFunction* lookup_receive_port_function() const { | 389 RawFunction* lookup_receive_port_function() const { |
396 return lookup_receive_port_function_; | 390 return lookup_receive_port_function_; |
397 } | 391 } |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
477 RawLibrary* typed_data_library_; | 471 RawLibrary* typed_data_library_; |
478 RawGrowableObjectArray* libraries_; | 472 RawGrowableObjectArray* libraries_; |
479 RawGrowableObjectArray* pending_classes_; | 473 RawGrowableObjectArray* pending_classes_; |
480 RawGrowableObjectArray* pending_functions_; | 474 RawGrowableObjectArray* pending_functions_; |
481 RawError* sticky_error_; | 475 RawError* sticky_error_; |
482 RawString* unhandled_exception_handler_; | 476 RawString* unhandled_exception_handler_; |
483 RawContext* empty_context_; | 477 RawContext* empty_context_; |
484 RawInstance* stack_overflow_; | 478 RawInstance* stack_overflow_; |
485 RawInstance* out_of_memory_; | 479 RawInstance* out_of_memory_; |
486 RawStacktrace* preallocated_stack_trace_; | 480 RawStacktrace* preallocated_stack_trace_; |
487 RawArray* keyword_symbols_; | |
488 RawFunction* receive_port_create_function_; | 481 RawFunction* receive_port_create_function_; |
489 RawFunction* lookup_receive_port_function_; | 482 RawFunction* lookup_receive_port_function_; |
490 RawFunction* handle_message_function_; | 483 RawFunction* handle_message_function_; |
491 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } | 484 RawObject** to() { |
485 return reinterpret_cast<RawObject**>(&handle_message_function_); | |
regis
2013/11/14 18:37:29
Oops :-)
| |
486 } | |
492 | 487 |
493 friend class SnapshotReader; | 488 friend class SnapshotReader; |
494 | 489 |
495 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 490 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
496 }; | 491 }; |
497 | 492 |
498 } // namespace dart | 493 } // namespace dart |
499 | 494 |
500 #endif // VM_OBJECT_STORE_H_ | 495 #endif // VM_OBJECT_STORE_H_ |
OLD | NEW |