Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index 807adbf7f401d7c8f43dd4551ec204492bc514ea..0cca0c4fb2a5b52044e43633b050fdead2ec28f8 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -94,7 +94,7 @@ static void InitializeVM() { |
static MaybeObject* GetGlobalProperty(const char* name) { |
- Handle<String> symbol = FACTORY->LookupAsciiSymbol(name); |
+ Handle<String> symbol = FACTORY->LookupUtf8Symbol(name); |
return Isolate::Current()->context()->global_object()->GetProperty(*symbol); |
} |
@@ -102,7 +102,7 @@ static MaybeObject* GetGlobalProperty(const char* name) { |
static void SetGlobalProperty(const char* name, Object* value) { |
Isolate* isolate = Isolate::Current(); |
Handle<Object> object(value); |
- Handle<String> symbol = FACTORY->LookupAsciiSymbol(name); |
+ Handle<String> symbol = FACTORY->LookupUtf8Symbol(name); |
Handle<JSObject> global(Isolate::Current()->context()->global_object()); |
SetProperty(isolate, global, symbol, object, NONE, kNonStrictMode); |
} |
@@ -294,13 +294,16 @@ TEST(C2JSFrames) { |
Execution::Call(fun0, global, 0, NULL, &has_pending_exception); |
CHECK(!has_pending_exception); |
- Object* foo_symbol = FACTORY->LookupAsciiSymbol("foo")->ToObjectChecked(); |
+ Object* foo_symbol = |
+ FACTORY->LookupOneByteSymbol(STATIC_ASCII_VECTOR("foo"))-> |
+ ToObjectChecked(); |
MaybeObject* fun1_object = Isolate::Current()->context()->global_object()-> |
GetProperty(String::cast(foo_symbol)); |
Handle<Object> fun1(fun1_object->ToObjectChecked()); |
CHECK(fun1->IsJSFunction()); |
- Handle<Object> argv[] = { FACTORY->LookupAsciiSymbol("hello") }; |
+ Handle<Object> argv[] = |
+ { FACTORY->LookupOneByteSymbol(STATIC_ASCII_VECTOR("hello")) }; |
Execution::Call(Handle<JSFunction>::cast(fun1), |
global, |
ARRAY_SIZE(argv), |