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

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

Issue 11364161: Fix broken VM build. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/deopt_instructions.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 2552 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 } 2563 }
2564 intptr_t GetTokenIndexOfPC(uword pc) const; 2564 intptr_t GetTokenIndexOfPC(uword pc) const;
2565 2565
2566 // Find pc, return 0 if not found. 2566 // Find pc, return 0 if not found.
2567 uword GetPatchCodePc() const; 2567 uword GetPatchCodePc() const;
2568 uword GetLazyDeoptPc() const; 2568 uword GetLazyDeoptPc() const;
2569 2569
2570 uword GetDeoptBeforePcAtDeoptId(intptr_t deopt_id) const; 2570 uword GetDeoptBeforePcAtDeoptId(intptr_t deopt_id) const;
2571 uword GetDeoptAfterPcAtDeoptId(intptr_t deopt_id) const; 2571 uword GetDeoptAfterPcAtDeoptId(intptr_t deopt_id) const;
2572 2572
2573 uword GetPcForDeoptId(intptr_t deopt_id, PcDescriptors::Kind kind) const;
2574
2573 // Returns true if there is an object in the code between 'start_offset' 2575 // Returns true if there is an object in the code between 'start_offset'
2574 // (inclusive) and 'end_offset' (exclusive). 2576 // (inclusive) and 'end_offset' (exclusive).
2575 bool ObjectExistsInArea(intptr_t start_offest, intptr_t end_offset) const; 2577 bool ObjectExistsInArea(intptr_t start_offest, intptr_t end_offset) const;
2576 2578
2577 // Each (*node_ids)[n] has a an extracted ic data array (*arrays)[n]. 2579 // Each (*node_ids)[n] has a an extracted ic data array (*arrays)[n].
2578 // Returns the maximum id found. 2580 // Returns the maximum id found.
2579 intptr_t ExtractIcDataArraysAtCalls( 2581 intptr_t ExtractIcDataArraysAtCalls(
2580 GrowableArray<intptr_t>* node_ids, 2582 GrowableArray<intptr_t>* node_ids,
2581 const GrowableObjectArray& ic_data_objs) const; 2583 const GrowableObjectArray& ic_data_objs) const;
2582 2584
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2619 int32_t* PointerOffsetAddrAt(int index) const { 2621 int32_t* PointerOffsetAddrAt(int index) const {
2620 ASSERT(index >= 0); 2622 ASSERT(index >= 0);
2621 ASSERT(index < pointer_offsets_length()); 2623 ASSERT(index < pointer_offsets_length());
2622 // TODO(iposva): Unit test is missing for this functionality. 2624 // TODO(iposva): Unit test is missing for this functionality.
2623 return &raw_ptr()->data_[index]; 2625 return &raw_ptr()->data_[index];
2624 } 2626 }
2625 void SetPointerOffsetAt(int index, int32_t offset_in_instructions) { 2627 void SetPointerOffsetAt(int index, int32_t offset_in_instructions) {
2626 *PointerOffsetAddrAt(index) = offset_in_instructions; 2628 *PointerOffsetAddrAt(index) = offset_in_instructions;
2627 } 2629 }
2628 2630
2629 uword GetPcForDeoptId(intptr_t deopt_id, PcDescriptors::Kind kind) const;
2630 2631
2631 // New is a private method as RawInstruction and RawCode objects should 2632 // New is a private method as RawInstruction and RawCode objects should
2632 // only be created using the Code::FinalizeCode method. This method creates 2633 // only be created using the Code::FinalizeCode method. This method creates
2633 // the RawInstruction and RawCode objects, sets up the pointer offsets 2634 // the RawInstruction and RawCode objects, sets up the pointer offsets
2634 // and links the two in a GC safe manner. 2635 // and links the two in a GC safe manner.
2635 static RawCode* New(intptr_t pointer_offsets_length); 2636 static RawCode* New(intptr_t pointer_offsets_length);
2636 2637
2637 HEAP_OBJECT_IMPLEMENTATION(Code, Object); 2638 HEAP_OBJECT_IMPLEMENTATION(Code, Object);
2638 friend class Class; 2639 friend class Class;
2639 }; 2640 };
(...skipping 3227 matching lines...) Expand 10 before | Expand all | Expand 10 after
5867 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5868 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5868 return false; 5869 return false;
5869 } 5870 }
5870 } 5871 }
5871 return true; 5872 return true;
5872 } 5873 }
5873 5874
5874 } // namespace dart 5875 } // namespace dart
5875 5876
5876 #endif // VM_OBJECT_H_ 5877 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698