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

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

Issue 1128803002: Lazily generate local var descriptors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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/flow_graph_compiler.cc ('k') | 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 4022 matching lines...) Expand 10 before | Expand all | Expand 10 after
4033 void DumpInlinedIntervals() const; 4033 void DumpInlinedIntervals() const;
4034 4034
4035 RawLocalVarDescriptors* var_descriptors() const { 4035 RawLocalVarDescriptors* var_descriptors() const {
4036 return raw_ptr()->var_descriptors_; 4036 return raw_ptr()->var_descriptors_;
4037 } 4037 }
4038 void set_var_descriptors(const LocalVarDescriptors& value) const { 4038 void set_var_descriptors(const LocalVarDescriptors& value) const {
4039 ASSERT(value.IsOld()); 4039 ASSERT(value.IsOld());
4040 StorePointer(&raw_ptr()->var_descriptors_, value.raw()); 4040 StorePointer(&raw_ptr()->var_descriptors_, value.raw());
4041 } 4041 }
4042 4042
4043 // Will compute local var descriptors is necessary.
4044 RawLocalVarDescriptors* GetLocalVarDescriptors() const;
4045
4043 RawExceptionHandlers* exception_handlers() const { 4046 RawExceptionHandlers* exception_handlers() const {
4044 return raw_ptr()->exception_handlers_; 4047 return raw_ptr()->exception_handlers_;
4045 } 4048 }
4046 void set_exception_handlers(const ExceptionHandlers& handlers) const { 4049 void set_exception_handlers(const ExceptionHandlers& handlers) const {
4047 ASSERT(handlers.IsOld()); 4050 ASSERT(handlers.IsOld());
4048 StorePointer(&raw_ptr()->exception_handlers_, handlers.raw()); 4051 StorePointer(&raw_ptr()->exception_handlers_, handlers.raw());
4049 } 4052 }
4050 4053
4051 // TODO(turnidge): Consider dropping this function and making 4054 // TODO(turnidge): Consider dropping this function and making
4052 // everybody use owner(). Currently this function is misused - even 4055 // everybody use owner(). Currently this function is misused - even
(...skipping 3716 matching lines...) Expand 10 before | Expand all | Expand 10 after
7769 7772
7770 7773
7771 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7774 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7772 intptr_t index) { 7775 intptr_t index) {
7773 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7776 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7774 } 7777 }
7775 7778
7776 } // namespace dart 7779 } // namespace dart
7777 7780
7778 #endif // VM_OBJECT_H_ 7781 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698