| OLD | NEW |
| 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_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2072 ASSERT(object != value); | 2072 ASSERT(object != value); |
| 2073 movq(dest, value); | 2073 movq(dest, value); |
| 2074 Label done; | 2074 Label done; |
| 2075 if (can_value_be_smi) { | 2075 if (can_value_be_smi) { |
| 2076 StoreIntoObjectFilter(object, value, &done); | 2076 StoreIntoObjectFilter(object, value, &done); |
| 2077 } else { | 2077 } else { |
| 2078 StoreIntoObjectFilterNoSmi(object, value, &done); | 2078 StoreIntoObjectFilterNoSmi(object, value, &done); |
| 2079 } | 2079 } |
| 2080 // A store buffer update is required. | 2080 // A store buffer update is required. |
| 2081 if (value != RAX) pushq(RAX); | 2081 if (value != RAX) pushq(RAX); |
| 2082 leaq(RAX, dest); | 2082 if (object != RAX) { |
| 2083 movq(RAX, object); |
| 2084 } |
| 2083 call(&StubCode::UpdateStoreBufferLabel()); | 2085 call(&StubCode::UpdateStoreBufferLabel()); |
| 2084 if (value != RAX) popq(RAX); | 2086 if (value != RAX) popq(RAX); |
| 2085 Bind(&done); | 2087 Bind(&done); |
| 2086 } | 2088 } |
| 2087 | 2089 |
| 2088 | 2090 |
| 2089 void Assembler::StoreIntoObjectNoBarrier(Register object, | 2091 void Assembler::StoreIntoObjectNoBarrier(Register object, |
| 2090 const Address& dest, | 2092 const Address& dest, |
| 2091 Register value) { | 2093 Register value) { |
| 2092 movq(dest, value); | 2094 movq(dest, value); |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2503 | 2505 |
| 2504 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 2506 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 2505 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 2507 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 2506 return xmm_reg_names[reg]; | 2508 return xmm_reg_names[reg]; |
| 2507 } | 2509 } |
| 2508 | 2510 |
| 2509 | 2511 |
| 2510 } // namespace dart | 2512 } // namespace dart |
| 2511 | 2513 |
| 2512 #endif // defined TARGET_ARCH_X64 | 2514 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |