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

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

Issue 15743019: Consolidate debug stubs (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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
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" 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/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 1695
1696 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) { 1696 void StubCode::GenerateClosureCallInlineCacheStub(Assembler* assembler) {
1697 GenerateNArgsCheckInlineCacheStub(assembler, 1); 1697 GenerateNArgsCheckInlineCacheStub(assembler, 1);
1698 } 1698 }
1699 1699
1700 1700
1701 void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) { 1701 void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) {
1702 GenerateNArgsCheckInlineCacheStub(assembler, 1); 1702 GenerateNArgsCheckInlineCacheStub(assembler, 1);
1703 } 1703 }
1704 1704
1705 void StubCode::GenerateBreakpointEqNullStub(Assembler* assembler) {
1706 // TODO(hausner): implement this stub.
1707 __ Branch(&StubCode::EqualityWithNullArgLabel());
1708 }
1709 1705
1710 void StubCode::GenerateBreakpointClosureStub(Assembler* assembler) { 1706 void StubCode::GenerateBreakpointRuntimeStub(Assembler* assembler) {
1711 // TODO(hausner): implement this stub. 1707 __ Unimplemented("BreakpointRuntime stub");
1712 __ Branch(&StubCode::CallClosureFunctionLabel());
1713 } 1708 }
1714 1709
1715 1710
1716 // RA: return address (Dart code). 1711 // RA: return address (Dart code).
1717 // S4: Arguments descriptor array. 1712 // S4: Arguments descriptor array.
1718 void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) { 1713 void StubCode::GenerateBreakpointStaticStub(Assembler* assembler) {
1719 __ TraceSimMsg("BreakpointStaticStub"); 1714 __ TraceSimMsg("BreakpointStaticStub");
1720 // Create a stub frame as we are pushing some objects on the stack before 1715 // Create a stub frame as we are pushing some objects on the stack before
1721 // calling into the runtime. 1716 // calling into the runtime.
1722 __ EnterStubFrame(); 1717 __ EnterStubFrame();
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
2144 __ Bind(&done); 2139 __ Bind(&done);
2145 __ lw(T0, Address(SP, 0 * kWordSize)); 2140 __ lw(T0, Address(SP, 0 * kWordSize));
2146 __ lw(T1, Address(SP, 1 * kWordSize)); 2141 __ lw(T1, Address(SP, 1 * kWordSize));
2147 __ Ret(); 2142 __ Ret();
2148 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize)); 2143 __ delay_slot()->addiu(SP, SP, Immediate(2 * kWordSize));
2149 } 2144 }
2150 2145
2151 } // namespace dart 2146 } // namespace dart
2152 2147
2153 #endif // defined TARGET_ARCH_MIPS 2148 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698