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 2745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2756 } | 2756 } |
2757 ASSERT(last); | 2757 ASSERT(last); |
2758 IndirectEntryInstr* ientry = | 2758 IndirectEntryInstr* ientry = |
2759 last->AsGoto()->successor()->AsIndirectEntry(); | 2759 last->AsGoto()->successor()->AsIndirectEntry(); |
2760 ASSERT(ientry != NULL); | 2760 ASSERT(ientry != NULL); |
2761 ASSERT(ientry->indirect_id() == i); | 2761 ASSERT(ientry->indirect_id() == i); |
2762 offset = ientry->offset(); | 2762 offset = ientry->offset(); |
2763 } | 2763 } |
2764 | 2764 |
2765 ASSERT(offset > 0); | 2765 ASSERT(offset > 0); |
2766 offset -= Assembler::EntryPointToPcMarkerOffset(); | |
2767 offsets_.SetInt32(i * element_size, offset); | 2766 offsets_.SetInt32(i * element_size, offset); |
2768 } | 2767 } |
2769 } | 2768 } |
2770 | 2769 |
2771 | 2770 |
2772 LocationSummary* IndirectEntryInstr::MakeLocationSummary( | 2771 LocationSummary* IndirectEntryInstr::MakeLocationSummary( |
2773 Zone* zone, bool optimizing) const { | 2772 Zone* zone, bool optimizing) const { |
2774 return JoinEntryInstr::MakeLocationSummary(zone, optimizing); | 2773 return JoinEntryInstr::MakeLocationSummary(zone, optimizing); |
2775 } | 2774 } |
2776 | 2775 |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3639 case Token::kTRUNCDIV: return 0; | 3638 case Token::kTRUNCDIV: return 0; |
3640 case Token::kMOD: return 1; | 3639 case Token::kMOD: return 1; |
3641 default: UNIMPLEMENTED(); return -1; | 3640 default: UNIMPLEMENTED(); return -1; |
3642 } | 3641 } |
3643 } | 3642 } |
3644 | 3643 |
3645 | 3644 |
3646 #undef __ | 3645 #undef __ |
3647 | 3646 |
3648 } // namespace dart | 3647 } // namespace dart |
OLD | NEW |