| 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/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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 __ StoreObject(Address(RBP, (slot_base - i) * kWordSize), | 1082 __ StoreObject(Address(RBP, (slot_base - i) * kWordSize), |
| 1083 Object::empty_context()); | 1083 Object::empty_context()); |
| 1084 } | 1084 } |
| 1085 } else { | 1085 } else { |
| 1086 ASSERT(num_locals > 1); | 1086 ASSERT(num_locals > 1); |
| 1087 __ movq(Address(RBP, (slot_base - i) * kWordSize), RAX); | 1087 __ movq(Address(RBP, (slot_base - i) * kWordSize), RAX); |
| 1088 } | 1088 } |
| 1089 } | 1089 } |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 if (FLAG_reify_generic_functions) { |
| 1093 // TODO(regis): Check function type arguments of a generic function. |
| 1094 // For now, verify that a local variable has been allocated when necessary. |
| 1095 ASSERT((function.NumTypeParameters() == 0) || |
| 1096 (parsed_function().function_type_arguments() != NULL)); |
| 1097 // TODO(regis): Allocate and prepend parent type arguments when necessary. |
| 1098 ASSERT(!function.HasGenericParent() || |
| 1099 (parsed_function().parent_type_arguments() != NULL)); |
| 1100 } |
| 1101 |
| 1092 EndCodeSourceRange(TokenPosition::kDartCodePrologue); | 1102 EndCodeSourceRange(TokenPosition::kDartCodePrologue); |
| 1093 ASSERT(!block_order().is_empty()); | 1103 ASSERT(!block_order().is_empty()); |
| 1094 VisitBlocks(); | 1104 VisitBlocks(); |
| 1095 | 1105 |
| 1096 __ int3(); | 1106 __ int3(); |
| 1097 ASSERT(assembler()->constant_pool_allowed()); | 1107 ASSERT(assembler()->constant_pool_allowed()); |
| 1098 GenerateDeferredCode(); | 1108 GenerateDeferredCode(); |
| 1099 } | 1109 } |
| 1100 | 1110 |
| 1101 | 1111 |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1794 __ movups(reg, Address(RSP, 0)); | 1804 __ movups(reg, Address(RSP, 0)); |
| 1795 __ AddImmediate(RSP, Immediate(kFpuRegisterSize)); | 1805 __ AddImmediate(RSP, Immediate(kFpuRegisterSize)); |
| 1796 } | 1806 } |
| 1797 | 1807 |
| 1798 | 1808 |
| 1799 #undef __ | 1809 #undef __ |
| 1800 | 1810 |
| 1801 } // namespace dart | 1811 } // namespace dart |
| 1802 | 1812 |
| 1803 #endif // defined TARGET_ARCH_X64 | 1813 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |