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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(Top::global()->IsJSObject()); |
285 CHECK(Top::global_context()->IsContext()); | 285 CHECK(Top::global_context()->IsContext()); |
| 286 CHECK(Top::special_function_table()->IsFixedArray()); |
286 CHECK(Heap::symbol_table()->IsSymbolTable()); | 287 CHECK(Heap::symbol_table()->IsSymbolTable()); |
287 CHECK(!Factory::LookupAsciiSymbol("Empty")->IsFailure()); | 288 CHECK(!Factory::LookupAsciiSymbol("Empty")->IsFailure()); |
288 } | 289 } |
289 | 290 |
290 | 291 |
291 DEPENDENT_TEST(Deserialize, Serialize) { | 292 DEPENDENT_TEST(Deserialize, Serialize) { |
292 v8::HandleScope scope; | 293 v8::HandleScope scope; |
293 | 294 |
294 Deserialize(); | 295 Deserialize(); |
295 | 296 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 TEST(TestThatAlwaysFails) { | 569 TEST(TestThatAlwaysFails) { |
569 bool ArtificialFailure = false; | 570 bool ArtificialFailure = false; |
570 CHECK(ArtificialFailure); | 571 CHECK(ArtificialFailure); |
571 } | 572 } |
572 | 573 |
573 | 574 |
574 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { | 575 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { |
575 bool ArtificialFailure2 = false; | 576 bool ArtificialFailure2 = false; |
576 CHECK(ArtificialFailure2); | 577 CHECK(ArtificialFailure2); |
577 } | 578 } |
OLD | NEW |