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

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

Issue 254483005: - Rationalize the way we use comments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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/stub_code.cc ('k') | no next file » | 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" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
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 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 __ LeaveStubFrame(); 1545 __ LeaveStubFrame();
1546 1546
1547 __ ldr(R2, FieldAddress(R0, Function::code_offset())); 1547 __ ldr(R2, FieldAddress(R0, Function::code_offset()));
1548 __ ldr(R2, FieldAddress(R2, Code::instructions_offset())); 1548 __ ldr(R2, FieldAddress(R2, Code::instructions_offset()));
1549 __ AddImmediate(R2, Instructions::HeaderSize() - kHeapObjectTag); 1549 __ AddImmediate(R2, Instructions::HeaderSize() - kHeapObjectTag);
1550 __ bx(R2); 1550 __ bx(R2);
1551 } 1551 }
1552 1552
1553 1553
1554 void StubCode::GenerateBreakpointRuntimeStub(Assembler* assembler) { 1554 void StubCode::GenerateBreakpointRuntimeStub(Assembler* assembler) {
1555 __ Comment("BreakpointRuntime stub");
1556 __ EnterStubFrame(); 1555 __ EnterStubFrame();
1557 __ LoadImmediate(R0, reinterpret_cast<intptr_t>(Object::null())); 1556 __ LoadImmediate(R0, reinterpret_cast<intptr_t>(Object::null()));
1558 // Preserve arguments descriptor and make room for result. 1557 // Preserve arguments descriptor and make room for result.
1559 __ PushList((1 << R0) | (1 << R4) | (1 << R5)); 1558 __ PushList((1 << R0) | (1 << R4) | (1 << R5));
1560 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0); 1559 __ CallRuntime(kBreakpointRuntimeHandlerRuntimeEntry, 0);
1561 __ PopList((1 << R0) | (1 << R4) | (1 << R5)); 1560 __ PopList((1 << R0) | (1 << R4) | (1 << R5));
1562 __ LeaveStubFrame(); 1561 __ LeaveStubFrame();
1563 __ bx(R0); 1562 __ bx(R0);
1564 } 1563 }
1565 1564
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1849 const Register right = R0; 1848 const Register right = R0;
1850 __ ldr(left, Address(SP, 1 * kWordSize)); 1849 __ ldr(left, Address(SP, 1 * kWordSize));
1851 __ ldr(right, Address(SP, 0 * kWordSize)); 1850 __ ldr(right, Address(SP, 0 * kWordSize));
1852 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 1851 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
1853 __ Ret(); 1852 __ Ret();
1854 } 1853 }
1855 1854
1856 } // namespace dart 1855 } // namespace dart
1857 1856
1858 #endif // defined TARGET_ARCH_ARM 1857 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/stub_code.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698