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

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

Issue 110883016: - Allow to pre-filter before calling the FindObjectVisitor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/pages.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/cpu.h" 10 #include "vm/cpu.h"
(...skipping 9788 matching lines...) Expand 10 before | Expand all | Expand 10 after
9799 return FinalizeCode(function.ToFullyQualifiedCString(), 9799 return FinalizeCode(function.ToFullyQualifiedCString(),
9800 assembler, 9800 assembler,
9801 optimized); 9801 optimized);
9802 } else { 9802 } else {
9803 return FinalizeCode("", assembler); 9803 return FinalizeCode("", assembler);
9804 } 9804 }
9805 } 9805 }
9806 9806
9807 9807
9808 // Check if object matches find condition. 9808 // Check if object matches find condition.
9809 bool Code::FindRawCodeVisitor::FindObject(RawObject* obj) { 9809 bool Code::FindRawCodeVisitor::FindObject(RawObject* obj) const {
9810 return RawInstructions::ContainsPC(obj, pc_); 9810 return RawInstructions::ContainsPC(obj, pc_);
9811 } 9811 }
9812 9812
9813 9813
9814 RawCode* Code::LookupCode(uword pc) { 9814 RawCode* Code::LookupCode(uword pc) {
9815 Isolate* isolate = Isolate::Current(); 9815 Isolate* isolate = Isolate::Current();
9816 NoGCScope no_gc; 9816 NoGCScope no_gc;
9817 FindRawCodeVisitor visitor(pc); 9817 FindRawCodeVisitor visitor(pc);
9818 RawInstructions* instr; 9818 RawInstructions* instr;
9819 if (isolate->heap() == NULL) { 9819 if (isolate->heap() == NULL) {
(...skipping 6962 matching lines...) Expand 10 before | Expand all | Expand 10 after
16782 return "_MirrorReference"; 16782 return "_MirrorReference";
16783 } 16783 }
16784 16784
16785 16785
16786 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 16786 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
16787 Instance::PrintToJSONStream(stream, ref); 16787 Instance::PrintToJSONStream(stream, ref);
16788 } 16788 }
16789 16789
16790 16790
16791 } // namespace dart 16791 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698