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

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

Issue 14605006: Allows "Hello, world!" to run on ARM hardware. (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
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | 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 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 // LR: return address. 1679 // LR: return address.
1680 // R0: instance (must be preserved). 1680 // R0: instance (must be preserved).
1681 // R1: instantiator type arguments or NULL. 1681 // R1: instantiator type arguments or NULL.
1682 // R2: cache array. 1682 // R2: cache array.
1683 // Result in R1: null -> not found, otherwise result (true or false). 1683 // Result in R1: null -> not found, otherwise result (true or false).
1684 void StubCode::GenerateSubtype3TestCacheStub(Assembler* assembler) { 1684 void StubCode::GenerateSubtype3TestCacheStub(Assembler* assembler) {
1685 GenerateSubtypeNTestCacheStub(assembler, 3); 1685 GenerateSubtypeNTestCacheStub(assembler, 3);
1686 } 1686 }
1687 1687
1688 1688
1689 // Return the current stack pointer address, used to stack alignment 1689 // Return the current stack pointer address, used to do stack alignment checks.
1690 // checks.
1691 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { 1690 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) {
1692 __ Unimplemented("GetStackPointer Stub"); 1691 __ mov(R0, ShifterOperand(SP));
1692 __ Ret();
1693 } 1693 }
1694 1694
1695 1695
1696 // Jump to the exception or error handler. 1696 // Jump to the exception or error handler.
1697 // LR: return address. 1697 // LR: return address.
1698 // R0: program_counter. 1698 // R0: program_counter.
1699 // R1: stack_pointer. 1699 // R1: stack_pointer.
1700 // R2: frame_pointer. 1700 // R2: frame_pointer.
1701 // R3: error object. 1701 // R3: error object.
1702 // SP: address of stacktrace object. 1702 // SP: address of stacktrace object.
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1902 __ Bind(&reference_compare); 1902 __ Bind(&reference_compare);
1903 __ cmp(left, ShifterOperand(right)); 1903 __ cmp(left, ShifterOperand(right));
1904 __ Bind(&done); 1904 __ Bind(&done);
1905 __ PopList((1 << R0) | (1 << R1) | (1 << R2)); 1905 __ PopList((1 << R0) | (1 << R1) | (1 << R2));
1906 __ Ret(); 1906 __ Ret();
1907 } 1907 }
1908 1908
1909 } // namespace dart 1909 } // namespace dart
1910 1910
1911 #endif // defined TARGET_ARCH_ARM 1911 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698