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

Side by Side Diff: test/cctest/test-serialize.cc

Issue 2866008: [Isolates] Move contents of Top into Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: ensure we're synced Created 10 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 | « test/cctest/test-regexp.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 2007-2010 the V8 project authors. All rights reserved. 1 // Copyright 2007-2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 static void Deserialize() { 274 static void Deserialize() {
275 CHECK(Snapshot::Initialize(FLAG_testing_serialization_file)); 275 CHECK(Snapshot::Initialize(FLAG_testing_serialization_file));
276 } 276 }
277 277
278 278
279 static void SanityCheck() { 279 static void SanityCheck() {
280 v8::HandleScope scope; 280 v8::HandleScope scope;
281 #ifdef DEBUG 281 #ifdef DEBUG
282 HEAP->Verify(); 282 HEAP->Verify();
283 #endif 283 #endif
284 CHECK(Top::global()->IsJSObject()); 284 CHECK(Isolate::Current()->global()->IsJSObject());
285 CHECK(Top::global_context()->IsContext()); 285 CHECK(Isolate::Current()->global_context()->IsContext());
286 CHECK(HEAP->symbol_table()->IsSymbolTable()); 286 CHECK(HEAP->symbol_table()->IsSymbolTable());
287 CHECK(!Factory::LookupAsciiSymbol("Empty")->IsFailure()); 287 CHECK(!Factory::LookupAsciiSymbol("Empty")->IsFailure());
288 } 288 }
289 289
290 290
291 DEPENDENT_TEST(Deserialize, Serialize) { 291 DEPENDENT_TEST(Deserialize, Serialize) {
292 // The serialize-deserialize tests only work if the VM is built without 292 // The serialize-deserialize tests only work if the VM is built without
293 // serialization. That doesn't matter. We don't need to be able to 293 // serialization. That doesn't matter. We don't need to be able to
294 // serialize a snapshot in a VM that is booted from a snapshot. 294 // serialize a snapshot in a VM that is booted from a snapshot.
295 if (!Snapshot::IsEnabled()) { 295 if (!Snapshot::IsEnabled()) {
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 TEST(TestThatAlwaysFails) { 659 TEST(TestThatAlwaysFails) {
660 bool ArtificialFailure = false; 660 bool ArtificialFailure = false;
661 CHECK(ArtificialFailure); 661 CHECK(ArtificialFailure);
662 } 662 }
663 663
664 664
665 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { 665 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
666 bool ArtificialFailure2 = false; 666 bool ArtificialFailure2 = false;
667 CHECK(ArtificialFailure2); 667 CHECK(ArtificialFailure2);
668 } 668 }
OLDNEW
« no previous file with comments | « test/cctest/test-regexp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698