| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 __ bgtz(T2, &null_args_loop); | 1026 __ bgtz(T2, &null_args_loop); |
| 1027 __ delay_slot()->sw(T5, Address(T3)); | 1027 __ delay_slot()->sw(T5, Address(T3)); |
| 1028 __ Bind(&null_args_loop_exit); | 1028 __ Bind(&null_args_loop_exit); |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 | 1031 |
| 1032 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) { | 1032 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) { |
| 1033 // RA: return address. | 1033 // RA: return address. |
| 1034 // SP: receiver. | 1034 // SP: receiver. |
| 1035 // Sequence node has one return node, its input is load field node. | 1035 // Sequence node has one return node, its input is load field node. |
| 1036 __ Comment("Inlined Getter"); |
| 1036 __ lw(V0, Address(SP, 0 * kWordSize)); | 1037 __ lw(V0, Address(SP, 0 * kWordSize)); |
| 1037 __ lw(V0, Address(V0, offset - kHeapObjectTag)); | 1038 __ lw(V0, Address(V0, offset - kHeapObjectTag)); |
| 1038 __ Ret(); | 1039 __ Ret(); |
| 1039 } | 1040 } |
| 1040 | 1041 |
| 1041 | 1042 |
| 1042 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) { | 1043 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) { |
| 1043 // RA: return address. | 1044 // RA: return address. |
| 1044 // SP+1: receiver. | 1045 // SP+1: receiver. |
| 1045 // SP+0: value. | 1046 // SP+0: value. |
| 1046 // Sequence node has one store node and one return NULL node. | 1047 // Sequence node has one store node and one return NULL node. |
| 1048 __ Comment("Inlined Setter"); |
| 1047 __ lw(T0, Address(SP, 1 * kWordSize)); // Receiver. | 1049 __ lw(T0, Address(SP, 1 * kWordSize)); // Receiver. |
| 1048 __ lw(T1, Address(SP, 0 * kWordSize)); // Value. | 1050 __ lw(T1, Address(SP, 0 * kWordSize)); // Value. |
| 1049 __ StoreIntoObject(T0, FieldAddress(T0, offset), T1); | 1051 __ StoreIntoObject(T0, FieldAddress(T0, offset), T1); |
| 1050 __ LoadImmediate(V0, reinterpret_cast<int32_t>(Object::null())); | 1052 __ LoadImmediate(V0, reinterpret_cast<int32_t>(Object::null())); |
| 1051 __ Ret(); | 1053 __ Ret(); |
| 1052 } | 1054 } |
| 1053 | 1055 |
| 1054 | 1056 |
| 1055 void FlowGraphCompiler::EmitFrameEntry() { | 1057 void FlowGraphCompiler::EmitFrameEntry() { |
| 1056 const Function& function = parsed_function().function(); | 1058 const Function& function = parsed_function().function(); |
| (...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1996 __ AddImmediate(SP, kDoubleSize); | 1998 __ AddImmediate(SP, kDoubleSize); |
| 1997 } | 1999 } |
| 1998 | 2000 |
| 1999 | 2001 |
| 2000 #undef __ | 2002 #undef __ |
| 2001 | 2003 |
| 2002 | 2004 |
| 2003 } // namespace dart | 2005 } // namespace dart |
| 2004 | 2006 |
| 2005 #endif // defined TARGET_ARCH_MIPS | 2007 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |