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

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

Issue 10909169: Add support for WritableRegister policy in the register allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't use non-volatile EBX in a test Created 8 years, 3 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/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/os.h" 9 #include "vm/os.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after
1849 EXPECT_EQ(16, res); // 16 bytes emitted. 1849 EXPECT_EQ(16, res); // 16 bytes emitted.
1850 } 1850 }
1851 1851
1852 1852
1853 // Called from assembler_test.cc. 1853 // Called from assembler_test.cc.
1854 ASSEMBLER_TEST_GENERATE(StoreIntoObject, assembler) { 1854 ASSEMBLER_TEST_GENERATE(StoreIntoObject, assembler) {
1855 __ pushl(CTX); 1855 __ pushl(CTX);
1856 __ movl(CTX, Address(ESP, 2 * kWordSize)); 1856 __ movl(CTX, Address(ESP, 2 * kWordSize));
1857 __ movl(EAX, Address(ESP, 3 * kWordSize)); 1857 __ movl(EAX, Address(ESP, 3 * kWordSize));
1858 __ movl(ECX, Address(ESP, 4 * kWordSize)); 1858 __ movl(ECX, Address(ESP, 4 * kWordSize));
1859 __ pushl(EAX);
1859 __ StoreIntoObject(ECX, 1860 __ StoreIntoObject(ECX,
1860 FieldAddress(ECX, GrowableObjectArray::data_offset()), 1861 FieldAddress(ECX, GrowableObjectArray::data_offset()),
1861 EAX); 1862 EAX);
1863 __ popl(EAX);
1862 __ popl(CTX); 1864 __ popl(CTX);
1863 __ ret(); 1865 __ ret();
1864 } 1866 }
1865 1867
1866 1868
1867 } // namespace dart 1869 } // namespace dart
1868 1870
1869 #endif // defined TARGET_ARCH_IA32 1871 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698