| 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/cpu.h" | 8 #include "vm/cpu.h" |
| 9 | 9 |
| 10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #endif | 50 #endif |
| 51 } | 51 } |
| 52 | 52 |
| 53 | 53 |
| 54 void HostCPUFeatures::Cleanup() { | 54 void HostCPUFeatures::Cleanup() { |
| 55 DEBUG_ASSERT(initialized_); | 55 DEBUG_ASSERT(initialized_); |
| 56 #if defined(DEBUG) | 56 #if defined(DEBUG) |
| 57 initialized_ = false; | 57 initialized_ = false; |
| 58 #endif | 58 #endif |
| 59 ASSERT(hardware_ != NULL); | 59 ASSERT(hardware_ != NULL); |
| 60 delete[] hardware_; | 60 free(const_cast<char*>(hardware_)); |
| 61 hardware_ = NULL; | 61 hardware_ = NULL; |
| 62 CpuInfo::Cleanup(); | 62 CpuInfo::Cleanup(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace dart | 65 } // namespace dart |
| 66 | 66 |
| 67 #endif // defined TARGET_ARCH_IA32 | 67 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |