OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |