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

Side by Side Diff: runtime/vm/stub_code_ia32.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
« runtime/vm/stub_code_arm.cc ('K') | « runtime/vm/stub_code_arm.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_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 // TOS + 0: return address. 1861 // TOS + 0: return address.
1862 // TOS + 1: instantiator type arguments. 1862 // TOS + 1: instantiator type arguments.
1863 // TOS + 2: instance. 1863 // TOS + 2: instance.
1864 // TOS + 3: cache array. 1864 // TOS + 3: cache array.
1865 // Result in ECX: null -> not found, otherwise result (true or false). 1865 // Result in ECX: null -> not found, otherwise result (true or false).
1866 void StubCode::GenerateSubtype3TestCacheStub(Assembler* assembler) { 1866 void StubCode::GenerateSubtype3TestCacheStub(Assembler* assembler) {
1867 GenerateSubtypeNTestCacheStub(assembler, 3); 1867 GenerateSubtypeNTestCacheStub(assembler, 3);
1868 } 1868 }
1869 1869
1870 1870
1871 // Return the current stack pointer address, used to stack alignment 1871 // Return the current stack pointer address, used to do stack alignment
1872 // checks. 1872 // checks.
regis 2013/05/02 22:32:40 'for' or 'to do', your pick :-)
1873 // TOS + 0: return address 1873 // TOS + 0: return address
1874 // Result in EAX. 1874 // Result in EAX.
1875 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) { 1875 void StubCode::GenerateGetStackPointerStub(Assembler* assembler) {
1876 __ leal(EAX, Address(ESP, kWordSize)); 1876 __ leal(EAX, Address(ESP, kWordSize));
1877 __ ret(); 1877 __ ret();
1878 } 1878 }
1879 1879
1880 1880
1881 // Jump to the exception or error handler. 1881 // Jump to the exception or error handler.
1882 // TOS + 0: return address 1882 // TOS + 0: return address
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 __ Bind(&done); 2100 __ Bind(&done);
2101 __ popl(temp); 2101 __ popl(temp);
2102 __ popl(right); 2102 __ popl(right);
2103 __ popl(left); 2103 __ popl(left);
2104 __ ret(); 2104 __ ret();
2105 } 2105 }
2106 2106
2107 } // namespace dart 2107 } // namespace dart
2108 2108
2109 #endif // defined TARGET_ARCH_IA32 2109 #endif // defined TARGET_ARCH_IA32
OLDNEW
« runtime/vm/stub_code_arm.cc ('K') | « runtime/vm/stub_code_arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698