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

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

Issue 2201093002: Make all reload zone allocations use the same zone (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rasd Created 4 years, 4 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/object_reload.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 "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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 302
303 return Dart_FinalizeLoading(false); 303 return Dart_FinalizeLoading(false);
304 } 304 }
305 305
306 306
307 Dart_Handle TestCase::GetReloadErrorOrRootLibrary() { 307 Dart_Handle TestCase::GetReloadErrorOrRootLibrary() {
308 Isolate* isolate = Isolate::Current(); 308 Isolate* isolate = Isolate::Current();
309 309
310 if (isolate->reload_context() != NULL && 310 if (isolate->reload_context() != NULL &&
311 isolate->reload_context()->has_error()) { 311 isolate->reload_context()->reload_aborted()) {
312 // Return a handle to the error. 312 // Return a handle to the error.
313 return Api::NewHandle(Thread::Current(), 313 return Api::NewHandle(Thread::Current(),
314 isolate->reload_context()->error()); 314 isolate->reload_context()->error());
315 } 315 }
316 return Dart_RootLibrary(); 316 return Dart_RootLibrary();
317 } 317 }
318 318
319 319
320 Dart_Handle TestCase::ReloadTestScript(const char* script) { 320 Dart_Handle TestCase::ReloadTestScript(const char* script) {
321 SetReloadTestScript(script); 321 SetReloadTestScript(script);
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 } 487 }
488 // Copy the remainder of in to out. 488 // Copy the remainder of in to out.
489 while (*in != '\0') { 489 while (*in != '\0') {
490 *out++ = *in++; 490 *out++ = *in++;
491 } 491 }
492 *out = '\0'; 492 *out = '\0';
493 } 493 }
494 494
495 495
496 } // namespace dart 496 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object_reload.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698