| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |