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

Unified Diff: test/cctest/test-heap.cc

Issue 11759008: Introduce ENABLE_LATIN_1 compile flag (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix FilterASCII Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-hashing.cc ('k') | test/cctest/test-strings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index adab79bdbafda9d0f68889ae79729e597f3d57a2..0d9196c370076fbdad7d46fbd010f3ecbb666bb0 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -62,7 +62,7 @@ static void CheckOddball(Object* obj, const char* string) {
CHECK(obj->IsOddball());
bool exc;
Object* print_string = *Execution::ToString(Handle<Object>(obj), &exc);
- CHECK(String::cast(print_string)->IsEqualTo(CStrVector(string)));
+ CHECK(String::cast(print_string)->IsUtf8EqualTo(CStrVector(string)));
}
@@ -70,7 +70,7 @@ static void CheckSmi(int value, const char* string) {
bool exc;
Object* print_string =
*Execution::ToString(Handle<Object>(Smi::FromInt(value)), &exc);
- CHECK(String::cast(print_string)->IsEqualTo(CStrVector(string)));
+ CHECK(String::cast(print_string)->IsUtf8EqualTo(CStrVector(string)));
}
@@ -79,7 +79,7 @@ static void CheckNumber(double value, const char* string) {
CHECK(obj->IsNumber());
bool exc;
Object* print_string = *Execution::ToString(Handle<Object>(obj), &exc);
- CHECK(String::cast(print_string)->IsEqualTo(CStrVector(string)));
+ CHECK(String::cast(print_string)->IsUtf8EqualTo(CStrVector(string)));
}
@@ -544,7 +544,7 @@ static void CheckSymbols(const char** strings) {
MaybeObject* maybe_b = HEAP->LookupUtf8Symbol(string);
if (!maybe_b->ToObject(&b)) continue;
CHECK_EQ(b, a);
- CHECK(String::cast(b)->IsEqualTo(CStrVector(string)));
+ CHECK(String::cast(b)->IsUtf8EqualTo(CStrVector(string)));
}
}
@@ -793,7 +793,7 @@ TEST(StringAllocation) {
FACTORY->LookupUtf8Symbol(Vector<const char>(non_ascii, 3 * length));
CHECK_EQ(length, non_ascii_sym->length());
Handle<String> ascii_sym =
- FACTORY->LookupOneByteSymbol(Vector<const char>(ascii, length));
+ FACTORY->LookupOneByteSymbol(OneByteVector(ascii, length));
CHECK_EQ(length, ascii_sym->length());
Handle<String> non_ascii_str =
FACTORY->NewStringFromUtf8(Vector<const char>(non_ascii, 3 * length));
« no previous file with comments | « test/cctest/test-hashing.cc ('k') | test/cctest/test-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698