| 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 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1406 popl(value); // Pop argument | 1406 popl(value); // Pop argument |
| 1407 popal(); | 1407 popal(); |
| 1408 Bind(&done); | 1408 Bind(&done); |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 | 1411 |
| 1412 void Assembler::StoreIntoObjectNoBarrier(Register object, | 1412 void Assembler::StoreIntoObjectNoBarrier(Register object, |
| 1413 const FieldAddress& dest, | 1413 const FieldAddress& dest, |
| 1414 Register value) { | 1414 Register value) { |
| 1415 movl(dest, value); | 1415 movl(dest, value); |
| 1416 #if defined(DEBUG) | 1416 #if 0 // TODO(cshapiro) Turn this back on after it is fixed defined(DEBUG). |
| 1417 Label done; | 1417 Label done; |
| 1418 testl(value, Immediate(kNewObjectAlignmentOffset | kHeapObjectTag)); | 1418 testl(value, Immediate(kNewObjectAlignmentOffset | kHeapObjectTag)); |
| 1419 j(PARITY_ODD, &done, Assembler::kNearJump); | 1419 j(PARITY_ODD, &done, Assembler::kNearJump); |
| 1420 testl(object, Immediate(kNewObjectAlignmentOffset)); | 1420 testl(object, Immediate(kNewObjectAlignmentOffset)); |
| 1421 j(NOT_ZERO, &done, Assembler::kNearJump); | 1421 j(NOT_ZERO, &done, Assembler::kNearJump); |
| 1422 Stop("Store buffer update is required"); | 1422 Stop("Store buffer update is required"); |
| 1423 Bind(&done); | 1423 Bind(&done); |
| 1424 #endif | 1424 #endif |
| 1425 // No store buffer update. | 1425 // No store buffer update. |
| 1426 } | 1426 } |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 comments.SetCommentAt(i, comments_[i]->comment()); | 1718 comments.SetCommentAt(i, comments_[i]->comment()); |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 return comments; | 1721 return comments; |
| 1722 } | 1722 } |
| 1723 | 1723 |
| 1724 | 1724 |
| 1725 } // namespace dart | 1725 } // namespace dart |
| 1726 | 1726 |
| 1727 #endif // defined TARGET_ARCH_IA32 | 1727 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |