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

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

Issue 72923002: Add Dart keyword symbols to the VM isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | runtime/vm/symbols.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698