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 LocalVarDescriptors& v = LocalVarDescriptors::Handle(var_descriptors()); | 12051 LocalVarDescriptors& v = LocalVarDescriptors::Handle(var_descriptors()); |
Ivan Posva
2015/05/07 17:54:59
const LocalVarDescriptors
srdjan
2015/05/07 18:20:24
Done in a next CL.
| |
12052 if (v.IsNull()) { | 12052 if (v.IsNull()) { |
12053 const Function& f = Function::Handle(function()); | 12053 const Function& f = Function::Handle(function()); |
12054 ASSERT(!f.IsIrregexpFunction()); // Not yet implemented. | 12054 ASSERT(!f.IsIrregexpFunction()); // Not yet implemented. |
12055 Compiler::ComputeLocalVarDescriptors(*this); | 12055 Compiler::ComputeLocalVarDescriptors(*this); |
12056 } | 12056 } |
12057 return v.raw(); | 12057 return var_descriptors(); |
12058 } | 12058 } |
12059 | 12059 |
12060 | 12060 |
12061 void Code::set_state_bits(intptr_t bits) const { | 12061 void Code::set_state_bits(intptr_t bits) const { |
12062 StoreNonPointer(&raw_ptr()->state_bits_, bits); | 12062 StoreNonPointer(&raw_ptr()->state_bits_, bits); |
12063 } | 12063 } |
12064 | 12064 |
12065 | 12065 |
12066 void Code::set_is_optimized(bool value) const { | 12066 void Code::set_is_optimized(bool value) const { |
12067 set_state_bits(OptimizedBit::update(value, raw_ptr()->state_bits_)); | 12067 set_state_bits(OptimizedBit::update(value, raw_ptr()->state_bits_)); |
(...skipping 8658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
20726 return tag_label.ToCString(); | 20726 return tag_label.ToCString(); |
20727 } | 20727 } |
20728 | 20728 |
20729 | 20729 |
20730 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20730 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
20731 Instance::PrintJSONImpl(stream, ref); | 20731 Instance::PrintJSONImpl(stream, ref); |
20732 } | 20732 } |
20733 | 20733 |
20734 | 20734 |
20735 } // namespace dart | 20735 } // namespace dart |
OLD | NEW |