| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/constant_propagator.h" | 8 #include "vm/constant_propagator.h" |
| 9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 2751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2762 } | 2762 } |
| 2763 ASSERT(last); | 2763 ASSERT(last); |
| 2764 IndirectEntryInstr* ientry = | 2764 IndirectEntryInstr* ientry = |
| 2765 last->AsGoto()->successor()->AsIndirectEntry(); | 2765 last->AsGoto()->successor()->AsIndirectEntry(); |
| 2766 ASSERT(ientry != NULL); | 2766 ASSERT(ientry != NULL); |
| 2767 ASSERT(ientry->indirect_id() == i); | 2767 ASSERT(ientry->indirect_id() == i); |
| 2768 offset = ientry->offset(); | 2768 offset = ientry->offset(); |
| 2769 } | 2769 } |
| 2770 | 2770 |
| 2771 ASSERT(offset > 0); | 2771 ASSERT(offset > 0); |
| 2772 offset -= Assembler::EntryPointToPcMarkerOffset(); | |
| 2773 offsets_.SetInt32(i * element_size, offset); | 2772 offsets_.SetInt32(i * element_size, offset); |
| 2774 } | 2773 } |
| 2775 } | 2774 } |
| 2776 | 2775 |
| 2777 | 2776 |
| 2778 LocationSummary* IndirectEntryInstr::MakeLocationSummary( | 2777 LocationSummary* IndirectEntryInstr::MakeLocationSummary( |
| 2779 Zone* zone, bool optimizing) const { | 2778 Zone* zone, bool optimizing) const { |
| 2780 return JoinEntryInstr::MakeLocationSummary(zone, optimizing); | 2779 return JoinEntryInstr::MakeLocationSummary(zone, optimizing); |
| 2781 } | 2780 } |
| 2782 | 2781 |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3645 case Token::kTRUNCDIV: return 0; | 3644 case Token::kTRUNCDIV: return 0; |
| 3646 case Token::kMOD: return 1; | 3645 case Token::kMOD: return 1; |
| 3647 default: UNIMPLEMENTED(); return -1; | 3646 default: UNIMPLEMENTED(); return -1; |
| 3648 } | 3647 } |
| 3649 } | 3648 } |
| 3650 | 3649 |
| 3651 | 3650 |
| 3652 #undef __ | 3651 #undef __ |
| 3653 | 3652 |
| 3654 } // namespace dart | 3653 } // namespace dart |
| OLD | NEW |