Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: runtime/vm/object_store.h

Issue 580903004: Make sure Bigint._digits is always a Uint32List (instead of sometimes null). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 preallocated_stack_trace_ = value.raw(); 408 preallocated_stack_trace_ = value.raw();
409 } 409 }
410 410
411 RawFunction* lookup_port_handler() const { 411 RawFunction* lookup_port_handler() const {
412 return lookup_port_handler_; 412 return lookup_port_handler_;
413 } 413 }
414 void set_lookup_port_handler(const Function& function) { 414 void set_lookup_port_handler(const Function& function) {
415 lookup_port_handler_ = function.raw(); 415 lookup_port_handler_ = function.raw();
416 } 416 }
417 417
418 RawTypedData* empty_uint32_array() const {
419 return empty_uint32_array_;
420 }
421 void set_empty_uint32_array(const TypedData& array) {
422 // Only set once.
423 ASSERT(empty_uint32_array_ == TypedData::null());
424 ASSERT(!array.IsNull());
425 empty_uint32_array_ = array.raw();
426 }
427
418 RawFunction* handle_message_function() const { 428 RawFunction* handle_message_function() const {
419 return handle_message_function_; 429 return handle_message_function_;
420 } 430 }
421 void set_handle_message_function(const Function& function) { 431 void set_handle_message_function(const Function& function) {
422 handle_message_function_ = function.raw(); 432 handle_message_function_ = function.raw();
423 } 433 }
424 434
425 RawUserTag* default_tag() const { 435 RawUserTag* default_tag() const {
426 return default_tag_; 436 return default_tag_;
427 } 437 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 RawGrowableObjectArray* pending_deferred_loads_; 534 RawGrowableObjectArray* pending_deferred_loads_;
525 RawGrowableObjectArray* resume_capabilities_; 535 RawGrowableObjectArray* resume_capabilities_;
526 RawError* sticky_error_; 536 RawError* sticky_error_;
527 RawString* unhandled_exception_handler_; 537 RawString* unhandled_exception_handler_;
528 RawContext* empty_context_; 538 RawContext* empty_context_;
529 RawInstance* stack_overflow_; 539 RawInstance* stack_overflow_;
530 RawInstance* out_of_memory_; 540 RawInstance* out_of_memory_;
531 RawUnhandledException* preallocated_unhandled_exception_; 541 RawUnhandledException* preallocated_unhandled_exception_;
532 RawStacktrace* preallocated_stack_trace_; 542 RawStacktrace* preallocated_stack_trace_;
533 RawFunction* lookup_port_handler_; 543 RawFunction* lookup_port_handler_;
544 RawTypedData* empty_uint32_array_;
534 RawFunction* handle_message_function_; 545 RawFunction* handle_message_function_;
535 RawArray* library_load_error_table_; 546 RawArray* library_load_error_table_;
536 RawUserTag* default_tag_; 547 RawUserTag* default_tag_;
537 RawObject** to() { 548 RawObject** to() {
538 return reinterpret_cast<RawObject**>(&library_load_error_table_); 549 return reinterpret_cast<RawObject**>(&library_load_error_table_);
539 } 550 }
540 551
541 friend class SnapshotReader; 552 friend class SnapshotReader;
542 553
543 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 554 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
544 }; 555 };
545 556
546 } // namespace dart 557 } // namespace dart
547 558
548 #endif // VM_OBJECT_STORE_H_ 559 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698