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

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

Issue 259173003: Kiss goodbye to MaybeObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase + addressed comments Created 6 years, 7 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-mark-compact.cc ('k') | test/cctest/test-spaces.cc » ('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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 static void SanityCheck() { 291 static void SanityCheck() {
292 Isolate* isolate = CcTest::i_isolate(); 292 Isolate* isolate = CcTest::i_isolate();
293 v8::HandleScope scope(CcTest::isolate()); 293 v8::HandleScope scope(CcTest::isolate());
294 #ifdef VERIFY_HEAP 294 #ifdef VERIFY_HEAP
295 CcTest::heap()->Verify(); 295 CcTest::heap()->Verify();
296 #endif 296 #endif
297 CHECK(isolate->global_object()->IsJSObject()); 297 CHECK(isolate->global_object()->IsJSObject());
298 CHECK(isolate->native_context()->IsContext()); 298 CHECK(isolate->native_context()->IsContext());
299 CHECK(CcTest::heap()->string_table()->IsStringTable()); 299 CHECK(CcTest::heap()->string_table()->IsStringTable());
300 CHECK(!isolate->factory()->InternalizeOneByteString( 300 isolate->factory()->InternalizeOneByteString(STATIC_ASCII_VECTOR("Empty"));
301 STATIC_ASCII_VECTOR("Empty"))->IsFailure());
302 } 301 }
303 302
304 303
305 DEPENDENT_TEST(Deserialize, Serialize) { 304 DEPENDENT_TEST(Deserialize, Serialize) {
306 // The serialize-deserialize tests only work if the VM is built without 305 // The serialize-deserialize tests only work if the VM is built without
307 // serialization. That doesn't matter. We don't need to be able to 306 // serialization. That doesn't matter. We don't need to be able to
308 // serialize a snapshot in a VM that is booted from a snapshot. 307 // serialize a snapshot in a VM that is booted from a snapshot.
309 if (!Snapshot::HaveASnapshotToStartFrom()) { 308 if (!Snapshot::HaveASnapshotToStartFrom()) {
310 v8::Isolate* isolate = CcTest::isolate(); 309 v8::Isolate* isolate = CcTest::isolate();
311 v8::HandleScope scope(isolate); 310 v8::HandleScope scope(isolate);
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 TEST(TestThatAlwaysFails) { 637 TEST(TestThatAlwaysFails) {
639 bool ArtificialFailure = false; 638 bool ArtificialFailure = false;
640 CHECK(ArtificialFailure); 639 CHECK(ArtificialFailure);
641 } 640 }
642 641
643 642
644 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { 643 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
645 bool ArtificialFailure2 = false; 644 bool ArtificialFailure2 = false;
646 CHECK(ArtificialFailure2); 645 CHECK(ArtificialFailure2);
647 } 646 }
OLDNEW
« no previous file with comments | « test/cctest/test-mark-compact.cc ('k') | test/cctest/test-spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698