Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: runtime/vm/snapshot_test.cc

Issue 16378004: Revert change 23636 as it is causing issues on dartium. Will resubmit after investigating the darti… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698