| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "include/dart_debugger_api.h" | 5 #include "include/dart_debugger_api.h" |
| 6 #include "platform/assert.h" | 6 #include "platform/assert.h" |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" |
| 9 #include "vm/dart_api_impl.h" | 9 #include "vm/dart_api_impl.h" |
| 10 #include "vm/dart_api_message.h" | 10 #include "vm/dart_api_message.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 return expected.raw() == actual.raw(); | 42 return expected.raw() == actual.raw(); |
| 43 } | 43 } |
| 44 return false; | 44 return false; |
| 45 } | 45 } |
| 46 return false; | 46 return false; |
| 47 } | 47 } |
| 48 | 48 |
| 49 | 49 |
| 50 static uint8_t* malloc_allocator( | 50 static uint8_t* malloc_allocator( |
| 51 uint8_t* ptr, intptr_t old_size, intptr_t new_size) { | 51 uint8_t* ptr, intptr_t old_size, intptr_t new_size) { |
| 52 return Utils::Realloc(ptr, old_size, new_size); | 52 return reinterpret_cast<uint8_t*>(realloc(ptr, new_size)); |
| 53 } | 53 } |
| 54 | 54 |
| 55 | 55 |
| 56 static uint8_t* zone_allocator( | 56 static uint8_t* zone_allocator( |
| 57 uint8_t* ptr, intptr_t old_size, intptr_t new_size) { | 57 uint8_t* ptr, intptr_t old_size, intptr_t new_size) { |
| 58 Zone* zone = Isolate::Current()->current_zone(); | 58 Zone* zone = Isolate::Current()->current_zone(); |
| 59 return zone->Realloc<uint8_t>(ptr, old_size, new_size); | 59 return zone->Realloc<uint8_t>(ptr, old_size, new_size); |
| 60 } | 60 } |
| 61 | 61 |
| 62 | 62 |
| (...skipping 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2488 result = Dart_RunLoop(); | 2488 result = Dart_RunLoop(); |
| 2489 EXPECT(Dart_IsError(result)); | 2489 EXPECT(Dart_IsError(result)); |
| 2490 EXPECT(Dart_ErrorHasException(result)); | 2490 EXPECT(Dart_ErrorHasException(result)); |
| 2491 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", | 2491 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", |
| 2492 Dart_GetError(result)); | 2492 Dart_GetError(result)); |
| 2493 | 2493 |
| 2494 Dart_ExitScope(); | 2494 Dart_ExitScope(); |
| 2495 } | 2495 } |
| 2496 | 2496 |
| 2497 } // namespace dart | 2497 } // namespace dart |
| OLD | NEW |