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

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

Issue 10536096: Add code comment to ia32 disassembly as well, bug fix new ia32 compiler, remove use of TMP register… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | « no previous file | runtime/vm/disassembler_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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/heap.h" 9 #include "vm/heap.h"
10 #include "vm/memory_region.h" 10 #include "vm/memory_region.h"
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 if (value == 1) { 1306 if (value == 1) {
1307 decl(reg); 1307 decl(reg);
1308 } else if (value != 0) { 1308 } else if (value != 0) {
1309 subl(reg, Immediate(value)); 1309 subl(reg, Immediate(value));
1310 } 1310 }
1311 } 1311 }
1312 } 1312 }
1313 1313
1314 1314
1315 void Assembler::Drop(intptr_t stack_elements) { 1315 void Assembler::Drop(intptr_t stack_elements) {
1316 ASSERT(stack_elements >= 0);
1316 if (stack_elements > 0) { 1317 if (stack_elements > 0) {
1317 addl(ESP, Immediate(stack_elements * kWordSize)); 1318 addl(ESP, Immediate(stack_elements * kWordSize));
1318 } 1319 }
1319 } 1320 }
1320 1321
1321 1322
1322 void Assembler::LoadObject(Register dst, const Object& object) { 1323 void Assembler::LoadObject(Register dst, const Object& object) {
1323 if (object.IsSmi()) { 1324 if (object.IsSmi()) {
1324 movl(dst, Immediate(reinterpret_cast<int32_t>(object.raw()))); 1325 movl(dst, Immediate(reinterpret_cast<int32_t>(object.raw())));
1325 } else { 1326 } else {
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 comments.SetCommentAt(i, comments_[i]->comment()); 1646 comments.SetCommentAt(i, comments_[i]->comment());
1646 } 1647 }
1647 1648
1648 return comments; 1649 return comments;
1649 } 1650 }
1650 1651
1651 1652
1652 } // namespace dart 1653 } // namespace dart
1653 1654
1654 #endif // defined TARGET_ARCH_IA32 1655 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/disassembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698