| OLD | NEW |
| 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 Loading... |
| 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()->IsJSObject()); | 285 CHECK(Isolate::Current()->global_object()->IsJSObject()); |
| 286 CHECK(Isolate::Current()->native_context()->IsContext()); | 286 CHECK(Isolate::Current()->native_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. |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |