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

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

Issue 11597007: Rename LookupSymbol calls to use Utf8 or OneByte in names. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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') | no next file » | 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 285
286 static void SanityCheck() { 286 static void SanityCheck() {
287 v8::HandleScope scope; 287 v8::HandleScope scope;
288 #ifdef VERIFY_HEAP 288 #ifdef VERIFY_HEAP
289 HEAP->Verify(); 289 HEAP->Verify();
290 #endif 290 #endif
291 CHECK(Isolate::Current()->global_object()->IsJSObject()); 291 CHECK(Isolate::Current()->global_object()->IsJSObject());
292 CHECK(Isolate::Current()->native_context()->IsContext()); 292 CHECK(Isolate::Current()->native_context()->IsContext());
293 CHECK(HEAP->symbol_table()->IsSymbolTable()); 293 CHECK(HEAP->symbol_table()->IsSymbolTable());
294 CHECK(!FACTORY->LookupAsciiSymbol("Empty")->IsFailure()); 294 CHECK(!FACTORY->LookupOneByteSymbol(
295 STATIC_ASCII_VECTOR("Empty"))->IsFailure());
295 } 296 }
296 297
297 298
298 DEPENDENT_TEST(Deserialize, Serialize) { 299 DEPENDENT_TEST(Deserialize, Serialize) {
299 // The serialize-deserialize tests only work if the VM is built without 300 // The serialize-deserialize tests only work if the VM is built without
300 // serialization. That doesn't matter. We don't need to be able to 301 // serialization. That doesn't matter. We don't need to be able to
301 // serialize a snapshot in a VM that is booted from a snapshot. 302 // serialize a snapshot in a VM that is booted from a snapshot.
302 if (!Snapshot::HaveASnapshotToStartFrom()) { 303 if (!Snapshot::HaveASnapshotToStartFrom()) {
303 v8::HandleScope scope; 304 v8::HandleScope scope;
304 Deserialize(); 305 Deserialize();
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 TEST(TestThatAlwaysFails) { 593 TEST(TestThatAlwaysFails) {
593 bool ArtificialFailure = false; 594 bool ArtificialFailure = false;
594 CHECK(ArtificialFailure); 595 CHECK(ArtificialFailure);
595 } 596 }
596 597
597 598
598 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { 599 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
599 bool ArtificialFailure2 = false; 600 bool ArtificialFailure2 = false;
600 CHECK(ArtificialFailure2); 601 CHECK(ArtificialFailure2);
601 } 602 }
OLDNEW
« no previous file with comments | « test/cctest/test-random.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698