| Index: src/fast-codegen.cc
|
| ===================================================================
|
| --- src/fast-codegen.cc (revision 3900)
|
| +++ src/fast-codegen.cc (working copy)
|
| @@ -220,7 +220,7 @@
|
| if (info()->has_global_object()) {
|
| LookupResult lookup;
|
| info()->global_object()->Lookup(*expr->name(), &lookup);
|
| - if (!lookup.IsValid()) {
|
| + if (!lookup.IsProperty()) {
|
| BAILOUT("Non-existing global variable");
|
| }
|
| // We do not handle global variables with accessors or interceptors.
|
| @@ -284,7 +284,7 @@
|
| Handle<String> name = Handle<String>::cast(key->handle());
|
| LookupResult lookup;
|
| receiver->Lookup(*name, &lookup);
|
| - if (!lookup.IsValid()) {
|
| + if (!lookup.IsProperty()) {
|
| BAILOUT("Assigned property not found at compile time");
|
| }
|
| if (lookup.holder() != *receiver) BAILOUT("Non-own property assignment");
|
| @@ -322,7 +322,7 @@
|
| Handle<String> name = Handle<String>::cast(key->handle());
|
| LookupResult lookup;
|
| receiver->Lookup(*name, &lookup);
|
| - if (!lookup.IsValid()) {
|
| + if (!lookup.IsProperty()) {
|
| BAILOUT("Referenced property not found at compile time");
|
| }
|
| if (lookup.holder() != *receiver) BAILOUT("Non-own property reference");
|
| @@ -586,7 +586,7 @@
|
| info()->global_object()->Lookup(*expr->name(), &lookup);
|
| // We only support normal (non-accessor/interceptor) DontDelete properties
|
| // for now.
|
| - ASSERT(lookup.IsValid());
|
| + ASSERT(lookup.IsProperty());
|
| ASSERT_EQ(NORMAL, lookup.type());
|
| ASSERT(lookup.IsDontDelete());
|
| Handle<Object> cell(info()->global_object()->GetPropertyCell(&lookup));
|
|
|