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(); |
2772 offsets_.SetInt32(i * element_size, offset); | 2773 offsets_.SetInt32(i * element_size, offset); |
2773 } | 2774 } |
2774 } | 2775 } |
2775 | 2776 |
2776 | 2777 |
2777 LocationSummary* IndirectEntryInstr::MakeLocationSummary( | 2778 LocationSummary* IndirectEntryInstr::MakeLocationSummary( |
2778 Zone* zone, bool optimizing) const { | 2779 Zone* zone, bool optimizing) const { |
2779 return JoinEntryInstr::MakeLocationSummary(zone, optimizing); | 2780 return JoinEntryInstr::MakeLocationSummary(zone, optimizing); |
2780 } | 2781 } |
2781 | 2782 |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3644 case Token::kTRUNCDIV: return 0; | 3645 case Token::kTRUNCDIV: return 0; |
3645 case Token::kMOD: return 1; | 3646 case Token::kMOD: return 1; |
3646 default: UNIMPLEMENTED(); return -1; | 3647 default: UNIMPLEMENTED(); return -1; |
3647 } | 3648 } |
3648 } | 3649 } |
3649 | 3650 |
3650 | 3651 |
3651 #undef __ | 3652 #undef __ |
3652 | 3653 |
3653 } // namespace dart | 3654 } // namespace dart |
OLD | NEW |