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

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

Issue 10878047: Revert to code state of 3.13.1 plus r12350 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/test-random.cc ('k') | test/mjsunit/compiler/inline-accessors.js » ('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 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 static void Deserialize() { 275 static void Deserialize() {
276 CHECK(Snapshot::Initialize(FLAG_testing_serialization_file)); 276 CHECK(Snapshot::Initialize(FLAG_testing_serialization_file));
277 } 277 }
278 278
279 279
280 static void SanityCheck() { 280 static void SanityCheck() {
281 v8::HandleScope scope; 281 v8::HandleScope scope;
282 #ifdef DEBUG 282 #ifdef DEBUG
283 HEAP->Verify(); 283 HEAP->Verify();
284 #endif 284 #endif
285 CHECK(Isolate::Current()->global_object()->IsJSObject()); 285 CHECK(Isolate::Current()->global()->IsJSObject());
286 CHECK(Isolate::Current()->native_context()->IsContext()); 286 CHECK(Isolate::Current()->global_context()->IsContext());
287 CHECK(HEAP->symbol_table()->IsSymbolTable()); 287 CHECK(HEAP->symbol_table()->IsSymbolTable());
288 CHECK(!FACTORY->LookupAsciiSymbol("Empty")->IsFailure()); 288 CHECK(!FACTORY->LookupAsciiSymbol("Empty")->IsFailure());
289 } 289 }
290 290
291 291
292 DEPENDENT_TEST(Deserialize, Serialize) { 292 DEPENDENT_TEST(Deserialize, Serialize) {
293 // The serialize-deserialize tests only work if the VM is built without 293 // The serialize-deserialize tests only work if the VM is built without
294 // serialization. That doesn't matter. We don't need to be able to 294 // serialization. That doesn't matter. We don't need to be able to
295 // serialize a snapshot in a VM that is booted from a snapshot. 295 // serialize a snapshot in a VM that is booted from a snapshot.
296 if (!Snapshot::HaveASnapshotToStartFrom()) { 296 if (!Snapshot::HaveASnapshotToStartFrom()) {
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 TEST(TestThatAlwaysFails) { 686 TEST(TestThatAlwaysFails) {
687 bool ArtificialFailure = false; 687 bool ArtificialFailure = false;
688 CHECK(ArtificialFailure); 688 CHECK(ArtificialFailure);
689 } 689 }
690 690
691 691
692 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { 692 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
693 bool ArtificialFailure2 = false; 693 bool ArtificialFailure2 = false;
694 CHECK(ArtificialFailure2); 694 CHECK(ArtificialFailure2);
695 } 695 }
OLDNEW
« no previous file with comments | « test/cctest/test-random.cc ('k') | test/mjsunit/compiler/inline-accessors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698