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 14614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14625 // Stub code. | 14625 // Stub code. |
14626 return; | 14626 return; |
14627 } | 14627 } |
14628 const Array& id_map = Array::Handle(inlined_id_to_function()); | 14628 const Array& id_map = Array::Handle(inlined_id_to_function()); |
14629 const Function& root = Function::Handle(function()); | 14629 const Function& root = Function::Handle(function()); |
14630 CodeSourceMapReader reader(map, id_map, root); | 14630 CodeSourceMapReader reader(map, id_map, root); |
14631 reader.DumpSourcePositions(PayloadStart()); | 14631 reader.DumpSourcePositions(PayloadStart()); |
14632 } | 14632 } |
14633 | 14633 |
14634 | 14634 |
| 14635 RawArray* Code::await_token_positions() const { |
| 14636 #if defined(DART_PRECOMPILED_RUNTIME) |
| 14637 return Array::null(); |
| 14638 #else |
| 14639 return raw_ptr()->await_token_positions_; |
| 14640 #endif |
| 14641 } |
| 14642 |
14635 RawContext* Context::New(intptr_t num_variables, Heap::Space space) { | 14643 RawContext* Context::New(intptr_t num_variables, Heap::Space space) { |
14636 ASSERT(num_variables >= 0); | 14644 ASSERT(num_variables >= 0); |
14637 ASSERT(Object::context_class() != Class::null()); | 14645 ASSERT(Object::context_class() != Class::null()); |
14638 | 14646 |
14639 if (num_variables < 0 || num_variables > kMaxElements) { | 14647 if (num_variables < 0 || num_variables > kMaxElements) { |
14640 // This should be caught before we reach here. | 14648 // This should be caught before we reach here. |
14641 FATAL1("Fatal error in Context::New: invalid num_variables %" Pd "\n", | 14649 FATAL1("Fatal error in Context::New: invalid num_variables %" Pd "\n", |
14642 num_variables); | 14650 num_variables); |
14643 } | 14651 } |
14644 Context& result = Context::Handle(); | 14652 Context& result = Context::Handle(); |
(...skipping 8272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22917 return UserTag::null(); | 22925 return UserTag::null(); |
22918 } | 22926 } |
22919 | 22927 |
22920 | 22928 |
22921 const char* UserTag::ToCString() const { | 22929 const char* UserTag::ToCString() const { |
22922 const String& tag_label = String::Handle(label()); | 22930 const String& tag_label = String::Handle(label()); |
22923 return tag_label.ToCString(); | 22931 return tag_label.ToCString(); |
22924 } | 22932 } |
22925 | 22933 |
22926 } // namespace dart | 22934 } // namespace dart |
OLD | NEW |