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

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

Issue 12301042: Implement ARM disassembler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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/instructions_arm_test.cc ('k') | no next file » | 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 2594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2605 } 2605 }
2606 2606
2607 uword EntryPoint() const { 2607 uword EntryPoint() const {
2608 const Instructions& instr = Instructions::Handle(instructions()); 2608 const Instructions& instr = Instructions::Handle(instructions());
2609 return instr.EntryPoint(); 2609 return instr.EntryPoint();
2610 } 2610 }
2611 intptr_t Size() const { 2611 intptr_t Size() const {
2612 const Instructions& instr = Instructions::Handle(instructions()); 2612 const Instructions& instr = Instructions::Handle(instructions());
2613 return instr.size(); 2613 return instr.size();
2614 } 2614 }
2615 RawArray* ObjectPool() const {
2616 const Instructions& instr = Instructions::Handle(instructions());
2617 return instr.object_pool();
2618 }
2615 bool ContainsInstructionAt(uword addr) const { 2619 bool ContainsInstructionAt(uword addr) const {
2616 const Instructions& instr = Instructions::Handle(instructions()); 2620 const Instructions& instr = Instructions::Handle(instructions());
2617 const uword offset = addr - instr.EntryPoint(); 2621 const uword offset = addr - instr.EntryPoint();
2618 return offset < static_cast<uword>(instr.size()); 2622 return offset < static_cast<uword>(instr.size());
2619 } 2623 }
2620 2624
2621 RawPcDescriptors* pc_descriptors() const { 2625 RawPcDescriptors* pc_descriptors() const {
2622 return raw_ptr()->pc_descriptors_; 2626 return raw_ptr()->pc_descriptors_;
2623 } 2627 }
2624 void set_pc_descriptors(const PcDescriptors& descriptors) const { 2628 void set_pc_descriptors(const PcDescriptors& descriptors) const {
(...skipping 3734 matching lines...) Expand 10 before | Expand all | Expand 10 after
6359 6363
6360 6364
6361 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6365 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6362 intptr_t index) { 6366 intptr_t index) {
6363 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6367 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6364 } 6368 }
6365 6369
6366 } // namespace dart 6370 } // namespace dart
6367 6371
6368 #endif // VM_OBJECT_H_ 6372 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/instructions_arm_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698