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

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

Issue 467103005: Fixes to support ARMv5 lego mindstorm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/deopt_instructions.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/globals.h" // Needed here to get TARGET_ARCH_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 984
985 Label next; 985 Label next;
986 __ nop(4); // Need a fixed size sequence on frame entry. 986 __ nop(4); // Need a fixed size sequence on frame entry.
987 __ call(&next); 987 __ call(&next);
988 __ Bind(&next); 988 __ Bind(&next);
989 989
990 const intptr_t object_pool_pc_dist = 990 const intptr_t object_pool_pc_dist =
991 Instructions::HeaderSize() - Instructions::object_pool_offset() + 991 Instructions::HeaderSize() - Instructions::object_pool_offset() +
992 __ CodeSize(); 992 __ CodeSize();
993 const intptr_t offset = 993 const intptr_t offset =
994 Assembler::kEntryPointToPcMarkerOffset - __ CodeSize(); 994 Assembler::EntryPointToPcMarkerOffset() - __ CodeSize();
995 __ popq(new_pc); 995 __ popq(new_pc);
996 if (offset != 0) { 996 if (offset != 0) {
997 __ addq(new_pc, Immediate(offset)); 997 __ addq(new_pc, Immediate(offset));
998 } 998 }
999 999
1000 // Load callee's pool pointer. 1000 // Load callee's pool pointer.
1001 __ movq(new_pp, Address(new_pc, -object_pool_pc_dist - offset)); 1001 __ movq(new_pp, Address(new_pc, -object_pool_pc_dist - offset));
1002 1002
1003 // Load function object using the callee's pool pointer. 1003 // Load function object using the callee's pool pointer.
1004 __ LoadObject(function_reg, function, new_pp); 1004 __ LoadObject(function_reg, function, new_pp);
(...skipping 23 matching lines...) Expand all
1028 1028
1029 Label next; 1029 Label next;
1030 __ nop(4); // Need a fixed size sequence on frame entry. 1030 __ nop(4); // Need a fixed size sequence on frame entry.
1031 __ call(&next); 1031 __ call(&next);
1032 __ Bind(&next); 1032 __ Bind(&next);
1033 1033
1034 const intptr_t object_pool_pc_dist = 1034 const intptr_t object_pool_pc_dist =
1035 Instructions::HeaderSize() - Instructions::object_pool_offset() + 1035 Instructions::HeaderSize() - Instructions::object_pool_offset() +
1036 __ CodeSize(); 1036 __ CodeSize();
1037 const intptr_t offset = 1037 const intptr_t offset =
1038 Assembler::kEntryPointToPcMarkerOffset - __ CodeSize(); 1038 Assembler::EntryPointToPcMarkerOffset() - __ CodeSize();
1039 __ popq(new_pc); 1039 __ popq(new_pc);
1040 if (offset != 0) { 1040 if (offset != 0) {
1041 __ addq(new_pc, Immediate(offset)); 1041 __ addq(new_pc, Immediate(offset));
1042 } 1042 }
1043 1043
1044 // Load callee's pool pointer. 1044 // Load callee's pool pointer.
1045 __ movq(new_pp, Address(new_pc, -object_pool_pc_dist - offset)); 1045 __ movq(new_pp, Address(new_pc, -object_pool_pc_dist - offset));
1046 1046
1047 entry_patch_pc_offset_ = assembler()->CodeSize(); 1047 entry_patch_pc_offset_ = assembler()->CodeSize();
1048 } 1048 }
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 __ movups(reg, Address(RSP, 0)); 1734 __ movups(reg, Address(RSP, 0));
1735 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1735 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1736 } 1736 }
1737 1737
1738 1738
1739 #undef __ 1739 #undef __
1740 1740
1741 } // namespace dart 1741 } // namespace dart
1742 1742
1743 #endif // defined TARGET_ARCH_X64 1743 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698