| 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" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1993 // A2: function type arguments (can be raw_null). | 1993 // A2: function type arguments (can be raw_null). |
| 1994 // A3: SubtypeTestCache. | 1994 // A3: SubtypeTestCache. |
| 1995 // Result in V0: null -> not found, otherwise result (true or false). | 1995 // Result in V0: null -> not found, otherwise result (true or false). |
| 1996 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) { | 1996 void StubCode::GenerateSubtype4TestCacheStub(Assembler* assembler) { |
| 1997 GenerateSubtypeNTestCacheStub(assembler, 4); | 1997 GenerateSubtypeNTestCacheStub(assembler, 4); |
| 1998 } | 1998 } |
| 1999 | 1999 |
| 2000 | 2000 |
| 2001 // Return the current stack pointer address, used to stack alignment | 2001 // Return the current stack pointer address, used to stack alignment |
| 2002 // checks. | 2002 // checks. |
| 2003 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { | 2003 void StubCode::GenerateGetCStackPointerStub(Assembler* assembler) { |
| 2004 __ Ret(); | 2004 __ Ret(); |
| 2005 __ delay_slot()->mov(V0, SP); | 2005 __ delay_slot()->mov(V0, SP); |
| 2006 } | 2006 } |
| 2007 | 2007 |
| 2008 | 2008 |
| 2009 // Jump to the exception or error handler. | 2009 // Jump to the exception or error handler. |
| 2010 // RA: return address. | 2010 // RA: return address. |
| 2011 // A0: program_counter. | 2011 // A0: program_counter. |
| 2012 // A1: stack_pointer. | 2012 // A1: stack_pointer. |
| 2013 // A2: frame_pointer. | 2013 // A2: frame_pointer. |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2449 } | 2449 } |
| 2450 | 2450 |
| 2451 | 2451 |
| 2452 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2452 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
| 2453 __ break_(0); | 2453 __ break_(0); |
| 2454 } | 2454 } |
| 2455 | 2455 |
| 2456 } // namespace dart | 2456 } // namespace dart |
| 2457 | 2457 |
| 2458 #endif // defined TARGET_ARCH_MIPS | 2458 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |