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

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

Issue 2411453003: Fix --verify-on-transition for OSR and concurrent sweep. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « runtime/vm/native_entry.cc ('k') | runtime/vm/runtime_entry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14545 matching lines...) Expand 10 before | Expand all | Expand 10 after
14556 // frame slots which are marked as having objects. 14556 // frame slots which are marked as having objects.
14557 *maps = stackmaps(); 14557 *maps = stackmaps();
14558 *map = Stackmap::null(); 14558 *map = Stackmap::null();
14559 for (intptr_t i = 0; i < maps->Length(); i++) { 14559 for (intptr_t i = 0; i < maps->Length(); i++) {
14560 *map ^= maps->At(i); 14560 *map ^= maps->At(i);
14561 ASSERT(!map->IsNull()); 14561 ASSERT(!map->IsNull());
14562 if (map->PcOffset() == pc_offset) { 14562 if (map->PcOffset() == pc_offset) {
14563 return map->raw(); // We found a stack map for this frame. 14563 return map->raw(); // We found a stack map for this frame.
14564 } 14564 }
14565 } 14565 }
14566 ASSERT(!is_optimized()); 14566 ASSERT(!is_optimized() || (pc_offset == Instructions::kUncheckedEntryOffset));
14567 return Stackmap::null(); 14567 return Stackmap::null();
14568 } 14568 }
14569 14569
14570 14570
14571 intptr_t Code::GetCallerId(intptr_t inlined_id) const { 14571 intptr_t Code::GetCallerId(intptr_t inlined_id) const {
14572 if (inlined_id < 0) { 14572 if (inlined_id < 0) {
14573 return -1; 14573 return -1;
14574 } 14574 }
14575 const Array& map = Array::Handle(GetInlinedCallerIdMap()); 14575 const Array& map = Array::Handle(GetInlinedCallerIdMap());
14576 if (map.IsNull() || (map.Length() == 0)) { 14576 if (map.IsNull() || (map.Length() == 0)) {
(...skipping 8428 matching lines...) Expand 10 before | Expand all | Expand 10 after
23005 return UserTag::null(); 23005 return UserTag::null();
23006 } 23006 }
23007 23007
23008 23008
23009 const char* UserTag::ToCString() const { 23009 const char* UserTag::ToCString() const {
23010 const String& tag_label = String::Handle(label()); 23010 const String& tag_label = String::Handle(label());
23011 return tag_label.ToCString(); 23011 return tag_label.ToCString();
23012 } 23012 }
23013 23013
23014 } // namespace dart 23014 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/native_entry.cc ('k') | runtime/vm/runtime_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698