| 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 #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 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2527 } | 2527 } |
| 2528 intptr_t pointer_offsets_length() const { | 2528 intptr_t pointer_offsets_length() const { |
| 2529 return raw_ptr()->pointer_offsets_length_; | 2529 return raw_ptr()->pointer_offsets_length_; |
| 2530 } | 2530 } |
| 2531 bool is_optimized() const { | 2531 bool is_optimized() const { |
| 2532 return (raw_ptr()->is_optimized_ == 1); | 2532 return (raw_ptr()->is_optimized_ == 1); |
| 2533 } | 2533 } |
| 2534 void set_is_optimized(bool value) const { | 2534 void set_is_optimized(bool value) const { |
| 2535 raw_ptr()->is_optimized_ = value ? 1 : 0; | 2535 raw_ptr()->is_optimized_ = value ? 1 : 0; |
| 2536 } | 2536 } |
| 2537 bool is_alive() const { |
| 2538 return (raw_ptr()->is_alive_ == 1); |
| 2539 } |
| 2540 void set_is_alive(bool value) const { |
| 2541 raw_ptr()->is_alive_ = value ? 1 : 0; |
| 2542 } |
| 2537 | 2543 |
| 2538 uword EntryPoint() const { | 2544 uword EntryPoint() const { |
| 2539 const Instructions& instr = Instructions::Handle(instructions()); | 2545 const Instructions& instr = Instructions::Handle(instructions()); |
| 2540 return instr.EntryPoint(); | 2546 return instr.EntryPoint(); |
| 2541 } | 2547 } |
| 2542 intptr_t Size() const { | 2548 intptr_t Size() const { |
| 2543 const Instructions& instr = Instructions::Handle(instructions()); | 2549 const Instructions& instr = Instructions::Handle(instructions()); |
| 2544 return instr.size(); | 2550 return instr.size(); |
| 2545 } | 2551 } |
| 2546 | 2552 |
| (...skipping 3016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5563 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5569 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5564 return false; | 5570 return false; |
| 5565 } | 5571 } |
| 5566 } | 5572 } |
| 5567 return true; | 5573 return true; |
| 5568 } | 5574 } |
| 5569 | 5575 |
| 5570 } // namespace dart | 5576 } // namespace dart |
| 5571 | 5577 |
| 5572 #endif // VM_OBJECT_H_ | 5578 #endif // VM_OBJECT_H_ |
| OLD | NEW |