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

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

Issue 933193002: - Increase the size of the preallocated stack trace to give (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/exceptions.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_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 7359 matching lines...) Expand 10 before | Expand all | Expand 10 after
7370 7370
7371 private: 7371 private:
7372 FINAL_HEAP_OBJECT_IMPLEMENTATION(SendPort, Instance); 7372 FINAL_HEAP_OBJECT_IMPLEMENTATION(SendPort, Instance);
7373 friend class Class; 7373 friend class Class;
7374 }; 7374 };
7375 7375
7376 7376
7377 // Internal stacktrace object used in exceptions for printing stack traces. 7377 // Internal stacktrace object used in exceptions for printing stack traces.
7378 class Stacktrace : public Instance { 7378 class Stacktrace : public Instance {
7379 public: 7379 public:
7380 static const int kPreallocatedStackdepth = 10; 7380 static const int kPreallocatedStackdepth = 30;
7381 7381
7382 intptr_t Length() const; 7382 intptr_t Length() const;
7383 7383
7384 RawFunction* FunctionAtFrame(intptr_t frame_index) const; 7384 RawFunction* FunctionAtFrame(intptr_t frame_index) const;
7385 7385
7386 RawCode* CodeAtFrame(intptr_t frame_index) const; 7386 RawCode* CodeAtFrame(intptr_t frame_index) const;
7387 void SetCodeAtFrame(intptr_t frame_index, const Code& code) const; 7387 void SetCodeAtFrame(intptr_t frame_index, const Code& code) const;
7388 7388
7389 RawSmi* PcOffsetAtFrame(intptr_t frame_index) const; 7389 RawSmi* PcOffsetAtFrame(intptr_t frame_index) const;
7390 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const; 7390 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const;
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
7806 7806
7807 7807
7808 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7808 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7809 intptr_t index) { 7809 intptr_t index) {
7810 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7810 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7811 } 7811 }
7812 7812
7813 } // namespace dart 7813 } // namespace dart
7814 7814
7815 #endif // VM_OBJECT_H_ 7815 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698