| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 } | 285 } |
| 286 | 286 |
| 287 | 287 |
| 288 static void SanityCheck() { | 288 static void SanityCheck() { |
| 289 v8::HandleScope scope; | 289 v8::HandleScope scope; |
| 290 #ifdef VERIFY_HEAP | 290 #ifdef VERIFY_HEAP |
| 291 HEAP->Verify(); | 291 HEAP->Verify(); |
| 292 #endif | 292 #endif |
| 293 CHECK(Isolate::Current()->global_object()->IsJSObject()); | 293 CHECK(Isolate::Current()->global_object()->IsJSObject()); |
| 294 CHECK(Isolate::Current()->native_context()->IsContext()); | 294 CHECK(Isolate::Current()->native_context()->IsContext()); |
| 295 CHECK(HEAP->symbol_table()->IsSymbolTable()); | 295 CHECK(HEAP->string_table()->IsStringTable()); |
| 296 CHECK(!FACTORY->LookupOneByteSymbol( | 296 CHECK(!FACTORY->InternalizeOneByteString( |
| 297 STATIC_ASCII_VECTOR("Empty"))->IsFailure()); | 297 STATIC_ASCII_VECTOR("Empty"))->IsFailure()); |
| 298 } | 298 } |
| 299 | 299 |
| 300 | 300 |
| 301 DEPENDENT_TEST(Deserialize, Serialize) { | 301 DEPENDENT_TEST(Deserialize, Serialize) { |
| 302 // The serialize-deserialize tests only work if the VM is built without | 302 // The serialize-deserialize tests only work if the VM is built without |
| 303 // serialization. That doesn't matter. We don't need to be able to | 303 // serialization. That doesn't matter. We don't need to be able to |
| 304 // serialize a snapshot in a VM that is booted from a snapshot. | 304 // serialize a snapshot in a VM that is booted from a snapshot. |
| 305 if (!Snapshot::HaveASnapshotToStartFrom()) { | 305 if (!Snapshot::HaveASnapshotToStartFrom()) { |
| 306 v8::HandleScope scope; | 306 v8::HandleScope scope; |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 TEST(TestThatAlwaysFails) { | 595 TEST(TestThatAlwaysFails) { |
| 596 bool ArtificialFailure = false; | 596 bool ArtificialFailure = false; |
| 597 CHECK(ArtificialFailure); | 597 CHECK(ArtificialFailure); |
| 598 } | 598 } |
| 599 | 599 |
| 600 | 600 |
| 601 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { | 601 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { |
| 602 bool ArtificialFailure2 = false; | 602 bool ArtificialFailure2 = false; |
| 603 CHECK(ArtificialFailure2); | 603 CHECK(ArtificialFailure2); |
| 604 } | 604 } |
| OLD | NEW |