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

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

Issue 2622053002: Refactor snapshots pieces to include a section for loading instructions into the heap of a regular … (Closed)
Patch Set: . Created 3 years, 11 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
« no previous file with comments | « runtime/vm/unit_test.h ('k') | runtime/vm/zone_test.cc » ('j') | 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 "vm/unit_test.h" 5 #include "vm/unit_test.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "bin/builtin.h" 9 #include "bin/builtin.h"
10 #include "bin/dartutils.h" 10 #include "bin/dartutils.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 while (test != NULL) { 47 while (test != NULL) {
48 test->RunTest(); 48 test->RunTest();
49 test = test->next_; 49 test = test->next_;
50 } 50 }
51 } 51 }
52 52
53 53
54 Dart_Isolate TestCase::CreateIsolate(const uint8_t* buffer, const char* name) { 54 Dart_Isolate TestCase::CreateIsolate(const uint8_t* buffer, const char* name) {
55 char* err; 55 char* err;
56 Dart_Isolate isolate = 56 Dart_Isolate isolate =
57 Dart_CreateIsolate(name, NULL, buffer, NULL, NULL, &err); 57 Dart_CreateIsolate(name, NULL, buffer, NULL, NULL, NULL, &err);
58 if (isolate == NULL) { 58 if (isolate == NULL) {
59 OS::Print("Creation of isolate failed '%s'\n", err); 59 OS::Print("Creation of isolate failed '%s'\n", err);
60 free(err); 60 free(err);
61 } 61 }
62 EXPECT(isolate != NULL); 62 EXPECT(isolate != NULL);
63 return isolate; 63 return isolate;
64 } 64 }
65 65
66 66
67 static const char* kPackageScheme = "package:"; 67 static const char* kPackageScheme = "package:";
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 } 479 }
480 // Copy the remainder of in to out. 480 // Copy the remainder of in to out.
481 while (*in != '\0') { 481 while (*in != '\0') {
482 *out++ = *in++; 482 *out++ = *in++;
483 } 483 }
484 *out = '\0'; 484 *out = '\0';
485 } 485 }
486 486
487 487
488 } // namespace dart 488 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/unit_test.h ('k') | runtime/vm/zone_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698