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

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

Issue 2719083004: Fix build failures in precompiled runtime (Closed)
Patch Set: Created 3 years, 9 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
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/become.h" 10 #include "vm/become.h"
(...skipping 14614 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_service.cc » ('j') | runtime/vm/object_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698