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

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

Issue 423193003: - Force growth when allocating objects from a snapshot. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | « no previous file | runtime/vm/object.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 3723 matching lines...) Expand 10 before | Expand all | Expand 10 after
3734 // Returns 0 if code is not patchable 3734 // Returns 0 if code is not patchable
3735 uword GetEntryPatchPc() const; 3735 uword GetEntryPatchPc() const;
3736 uword GetPatchCodePc() const; 3736 uword GetPatchCodePc() const;
3737 3737
3738 uword GetLazyDeoptPc() const; 3738 uword GetLazyDeoptPc() const;
3739 3739
3740 // Find pc, return 0 if not found. 3740 // Find pc, return 0 if not found.
3741 uword GetPcForDeoptId(intptr_t deopt_id, RawPcDescriptors::Kind kind) const; 3741 uword GetPcForDeoptId(intptr_t deopt_id, RawPcDescriptors::Kind kind) const;
3742 intptr_t GetDeoptIdForOsr(uword pc) const; 3742 intptr_t GetDeoptIdForOsr(uword pc) const;
3743 3743
3744 // Returns true if there is an object in the code between 'start_offset'
3745 // (inclusive) and 'end_offset' (exclusive).
3746 bool ObjectExistsInArea(intptr_t start_offest, intptr_t end_offset) const;
3747
3748 RawString* Name() const; 3744 RawString* Name() const;
3749 RawString* PrettyName() const; 3745 RawString* PrettyName() const;
3750 3746
3751 int64_t compile_timestamp() const { 3747 int64_t compile_timestamp() const {
3752 return raw_ptr()->compile_timestamp_; 3748 return raw_ptr()->compile_timestamp_;
3753 } 3749 }
3754 3750
3755 intptr_t entry_patch_pc_offset() const { 3751 intptr_t entry_patch_pc_offset() const {
3756 return raw_ptr()->entry_patch_pc_offset_; 3752 return raw_ptr()->entry_patch_pc_offset_;
3757 } 3753 }
(...skipping 3525 matching lines...) Expand 10 before | Expand all | Expand 10 after
7283 7279
7284 7280
7285 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7281 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7286 intptr_t index) { 7282 intptr_t index) {
7287 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7283 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7288 } 7284 }
7289 7285
7290 } // namespace dart 7286 } // namespace dart
7291 7287
7292 #endif // VM_OBJECT_H_ 7288 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698