| 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 12115 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 12126       ? EntryPoint() + patch_code_pc_offset() : 0; | 12126       ? EntryPoint() + patch_code_pc_offset() : 0; | 
| 12127 } | 12127 } | 
| 12128 | 12128 | 
| 12129 | 12129 | 
| 12130 uword Code::GetLazyDeoptPc() const { | 12130 uword Code::GetLazyDeoptPc() const { | 
| 12131   return (lazy_deopt_pc_offset() != kInvalidPc) | 12131   return (lazy_deopt_pc_offset() != kInvalidPc) | 
| 12132       ? EntryPoint() + lazy_deopt_pc_offset() : 0; | 12132       ? EntryPoint() + lazy_deopt_pc_offset() : 0; | 
| 12133 } | 12133 } | 
| 12134 | 12134 | 
| 12135 | 12135 | 
| 12136 bool Code::ObjectExistsInArea(intptr_t start_offset, |  | 
| 12137                               intptr_t end_offset) const { |  | 
| 12138   for (intptr_t i = 0; i < this->pointer_offsets_length(); i++) { |  | 
| 12139     const intptr_t offset = this->GetPointerOffsetAt(i); |  | 
| 12140     if ((start_offset <= offset) && (offset < end_offset)) { |  | 
| 12141       return false; |  | 
| 12142     } |  | 
| 12143   } |  | 
| 12144   return true; |  | 
| 12145 } |  | 
| 12146 |  | 
| 12147 |  | 
| 12148 RawStackmap* Code::GetStackmap(uword pc, Array* maps, Stackmap* map) const { | 12136 RawStackmap* Code::GetStackmap(uword pc, Array* maps, Stackmap* map) const { | 
| 12149   // This code is used during iterating frames during a GC and hence it | 12137   // This code is used during iterating frames during a GC and hence it | 
| 12150   // should not in turn start a GC. | 12138   // should not in turn start a GC. | 
| 12151   NoGCScope no_gc; | 12139   NoGCScope no_gc; | 
| 12152   if (stackmaps() == Array::null()) { | 12140   if (stackmaps() == Array::null()) { | 
| 12153     // No stack maps are present in the code object which means this | 12141     // No stack maps are present in the code object which means this | 
| 12154     // frame relies on tagged pointers. | 12142     // frame relies on tagged pointers. | 
| 12155     return Stackmap::null(); | 12143     return Stackmap::null(); | 
| 12156   } | 12144   } | 
| 12157   // A stack map is present in the code object, use the stack map to visit | 12145   // A stack map is present in the code object, use the stack map to visit | 
| (...skipping 7194 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 19352   return tag_label.ToCString(); | 19340   return tag_label.ToCString(); | 
| 19353 } | 19341 } | 
| 19354 | 19342 | 
| 19355 | 19343 | 
| 19356 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 19344 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 
| 19357   Instance::PrintJSONImpl(stream, ref); | 19345   Instance::PrintJSONImpl(stream, ref); | 
| 19358 } | 19346 } | 
| 19359 | 19347 | 
| 19360 | 19348 | 
| 19361 }  // namespace dart | 19349 }  // namespace dart | 
| OLD | NEW | 
|---|