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

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

Issue 12320103: Fix for bug 6767 - Limit stack trace collection for stack overflow exceptions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 RawInstance* stack_overflow() const { return stack_overflow_; } 490 RawInstance* stack_overflow() const { return stack_overflow_; }
491 void set_stack_overflow(const Instance& value) { 491 void set_stack_overflow(const Instance& value) {
492 stack_overflow_ = value.raw(); 492 stack_overflow_ = value.raw();
493 } 493 }
494 494
495 RawInstance* out_of_memory() const { return out_of_memory_; } 495 RawInstance* out_of_memory() const { return out_of_memory_; }
496 void set_out_of_memory(const Instance& value) { 496 void set_out_of_memory(const Instance& value) {
497 out_of_memory_ = value.raw(); 497 out_of_memory_ = value.raw();
498 } 498 }
499 499
500 RawStacktrace* preallocated_stack_trace() const {
501 return preallocated_stack_trace_;
502 }
503 void set_preallocated_stack_trace(const Stacktrace& value) {
504 preallocated_stack_trace_ = value.raw();
505 }
506
500 RawArray* keyword_symbols() const { return keyword_symbols_; } 507 RawArray* keyword_symbols() const { return keyword_symbols_; }
501 void set_keyword_symbols(const Array& value) { 508 void set_keyword_symbols(const Array& value) {
502 keyword_symbols_ = value.raw(); 509 keyword_symbols_ = value.raw();
503 } 510 }
504 void InitKeywordTable(); 511 void InitKeywordTable();
505 512
506 RawFunction* receive_port_create_function() const { 513 RawFunction* receive_port_create_function() const {
507 return receive_port_create_function_; 514 return receive_port_create_function_;
508 } 515 }
509 void set_receive_port_create_function(const Function& function) { 516 void set_receive_port_create_function(const Function& function) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 RawLibrary* scalarlist_library_; 618 RawLibrary* scalarlist_library_;
612 RawLibrary* uri_library_; 619 RawLibrary* uri_library_;
613 RawLibrary* utf_library_; 620 RawLibrary* utf_library_;
614 RawGrowableObjectArray* libraries_; 621 RawGrowableObjectArray* libraries_;
615 RawGrowableObjectArray* pending_classes_; 622 RawGrowableObjectArray* pending_classes_;
616 RawError* sticky_error_; 623 RawError* sticky_error_;
617 RawString* unhandled_exception_handler_; 624 RawString* unhandled_exception_handler_;
618 RawContext* empty_context_; 625 RawContext* empty_context_;
619 RawInstance* stack_overflow_; 626 RawInstance* stack_overflow_;
620 RawInstance* out_of_memory_; 627 RawInstance* out_of_memory_;
628 RawStacktrace* preallocated_stack_trace_;
621 RawArray* keyword_symbols_; 629 RawArray* keyword_symbols_;
622 RawFunction* receive_port_create_function_; 630 RawFunction* receive_port_create_function_;
623 RawFunction* lookup_receive_port_function_; 631 RawFunction* lookup_receive_port_function_;
624 RawFunction* handle_message_function_; 632 RawFunction* handle_message_function_;
625 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 633 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
626 634
627 friend class SnapshotReader; 635 friend class SnapshotReader;
628 636
629 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 637 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
630 }; 638 };
631 639
632 } // namespace dart 640 } // namespace dart
633 641
634 #endif // VM_OBJECT_STORE_H_ 642 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698