Fix style issues.

TBR=iposva

Review URL: http://codereview.chromium.org/7830

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@543 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
feng@chromium.org 2008-10-21 20:08:49 +00:00
parent 4bb03e97a6
commit 648f6d21c6
9 changed files with 17 additions and 18 deletions

View File

@ -529,7 +529,6 @@ void CodeGenerator::LoadGlobalReceiver(Register scratch) {
// that we have the INSIDE_TYPEOF typeof state. => Need to handle global // that we have the INSIDE_TYPEOF typeof state. => Need to handle global
// variables w/o reference errors elsewhere. // variables w/o reference errors elsewhere.
void CodeGenerator::LoadTypeofExpression(Expression* x) { void CodeGenerator::LoadTypeofExpression(Expression* x) {
Variable* variable = x->AsVariableProxy()->AsVariable(); Variable* variable = x->AsVariableProxy()->AsVariable();
if (variable != NULL && !variable->is_this() && variable->is_global()) { if (variable != NULL && !variable->is_this() && variable->is_global()) {
// NOTE: This is somewhat nasty. We force the compiler to load // NOTE: This is somewhat nasty. We force the compiler to load

View File

@ -572,8 +572,8 @@ void JSGlobalProxy::JSGlobalProxyVerify() {
JSObjectVerify(); JSObjectVerify();
VerifyObjectField(JSGlobalProxy::kContextOffset); VerifyObjectField(JSGlobalProxy::kContextOffset);
// Make sure that this object has no properties, elements. // Make sure that this object has no properties, elements.
CHECK(properties()->length() == 0); CHECK_EQ(0, properties()->length());
CHECK(elements()->length() == 0); CHECK_EQ(0, elements()->length());
} }