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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 1192103004: VM: New calling convention for generated code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed comments Created 5 years, 3 months 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
« no previous file with comments | « runtime/vm/instructions_x64_test.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | 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) 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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/instructions_x64_test.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698