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/become.h" | 10 #include "vm/become.h" |
(...skipping 13700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13711 | 13711 |
13712 | 13712 |
13713 Code::Comments::Comments(const Array& comments) : comments_(comments) {} | 13713 Code::Comments::Comments(const Array& comments) : comments_(comments) {} |
13714 | 13714 |
13715 | 13715 |
13716 RawLocalVarDescriptors* Code::GetLocalVarDescriptors() const { | 13716 RawLocalVarDescriptors* Code::GetLocalVarDescriptors() const { |
13717 const LocalVarDescriptors& v = LocalVarDescriptors::Handle(var_descriptors()); | 13717 const LocalVarDescriptors& v = LocalVarDescriptors::Handle(var_descriptors()); |
13718 if (v.IsNull()) { | 13718 if (v.IsNull()) { |
13719 ASSERT(!is_optimized()); | 13719 ASSERT(!is_optimized()); |
13720 const Function& f = Function::Handle(function()); | 13720 const Function& f = Function::Handle(function()); |
13721 if (f.kernel_function() != NULL) { | |
13722 return v.raw(); | |
13723 } | |
13724 ASSERT(!f.IsIrregexpFunction()); // Not yet implemented. | 13721 ASSERT(!f.IsIrregexpFunction()); // Not yet implemented. |
13725 Compiler::ComputeLocalVarDescriptors(*this); | 13722 Compiler::ComputeLocalVarDescriptors(*this); |
13726 } | 13723 } |
13727 return var_descriptors(); | 13724 return var_descriptors(); |
13728 } | 13725 } |
13729 | 13726 |
13730 | 13727 |
13731 void Code::set_state_bits(intptr_t bits) const { | 13728 void Code::set_state_bits(intptr_t bits) const { |
13732 StoreNonPointer(&raw_ptr()->state_bits_, bits); | 13729 StoreNonPointer(&raw_ptr()->state_bits_, bits); |
13733 } | 13730 } |
(...skipping 9071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22805 return UserTag::null(); | 22802 return UserTag::null(); |
22806 } | 22803 } |
22807 | 22804 |
22808 | 22805 |
22809 const char* UserTag::ToCString() const { | 22806 const char* UserTag::ToCString() const { |
22810 const String& tag_label = String::Handle(label()); | 22807 const String& tag_label = String::Handle(label()); |
22811 return tag_label.ToCString(); | 22808 return tag_label.ToCString(); |
22812 } | 22809 } |
22813 | 22810 |
22814 } // namespace dart | 22811 } // namespace dart |
OLD | NEW |