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

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

Issue 1133633002: Eagerly create local var descriptors for artificially created methods (they cannot be regularly par… (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') | no next file » | 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 12030 matching lines...) Expand 10 before | Expand all | Expand 10 after
12041 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment); 12041 comments_.SetAt(idx * kNumberOfEntries + kCommentEntry, comment);
12042 } 12042 }
12043 12043
12044 12044
12045 Code::Comments::Comments(const Array& comments) 12045 Code::Comments::Comments(const Array& comments)
12046 : comments_(comments) { 12046 : comments_(comments) {
12047 } 12047 }
12048 12048
12049 12049
12050 RawLocalVarDescriptors* Code::GetLocalVarDescriptors() const { 12050 RawLocalVarDescriptors* Code::GetLocalVarDescriptors() const {
12051 ASSERT(!is_optimized());
12051 LocalVarDescriptors& v = LocalVarDescriptors::Handle(var_descriptors()); 12052 LocalVarDescriptors& v = LocalVarDescriptors::Handle(var_descriptors());
12052 if (v.IsNull()) { 12053 if (v.IsNull()) {
12053 const Function& f = Function::Handle(function()); 12054 const Function& f = Function::Handle(function());
12054 ASSERT(!f.IsIrregexpFunction()); // Not yet implemented. 12055 ASSERT(!f.IsIrregexpFunction()); // Not yet implemented.
12055 Compiler::ComputeLocalVarDescriptors(*this); 12056 Compiler::ComputeLocalVarDescriptors(*this);
12056 } 12057 }
12057 return var_descriptors(); 12058 return var_descriptors();
12058 } 12059 }
12059 12060
12060 12061
(...skipping 8663 matching lines...) Expand 10 before | Expand all | Expand 10 after
20724 return tag_label.ToCString(); 20725 return tag_label.ToCString();
20725 } 20726 }
20726 20727
20727 20728
20728 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 20729 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
20729 Instance::PrintJSONImpl(stream, ref); 20730 Instance::PrintJSONImpl(stream, ref);
20730 } 20731 }
20731 20732
20732 20733
20733 } // namespace dart 20734 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698