Fix presubmit failures.

TBR=fschneider@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9163 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 94777e21
...@@ -3135,7 +3135,8 @@ void HGraphBuilder::VisitVariableProxy(VariableProxy* expr) { ...@@ -3135,7 +3135,8 @@ void HGraphBuilder::VisitVariableProxy(VariableProxy* expr) {
switch (variable->location()) { switch (variable->location()) {
case Variable::UNALLOCATED: { case Variable::UNALLOCATED: {
LookupResult lookup; LookupResult lookup;
GlobalPropertyAccess type = LookupGlobalProperty(variable, &lookup, false); GlobalPropertyAccess type =
LookupGlobalProperty(variable, &lookup, false);
if (type == kUseCell && if (type == kUseCell &&
info()->global_object()->IsAccessCheckNeeded()) { info()->global_object()->IsAccessCheckNeeded()) {
...@@ -3172,7 +3173,7 @@ void HGraphBuilder::VisitVariableProxy(VariableProxy* expr) { ...@@ -3172,7 +3173,7 @@ void HGraphBuilder::VisitVariableProxy(VariableProxy* expr) {
return ast_context()->ReturnValue(value); return ast_context()->ReturnValue(value);
} }
case Variable::CONTEXT:{ case Variable::CONTEXT: {
if (variable->mode() == Variable::CONST) { if (variable->mode() == Variable::CONST) {
return Bailout("reference to const context slot"); return Bailout("reference to const context slot");
} }
...@@ -3634,7 +3635,8 @@ void HGraphBuilder::HandleCompoundAssignment(Assignment* expr) { ...@@ -3634,7 +3635,8 @@ void HGraphBuilder::HandleCompoundAssignment(Assignment* expr) {
int count = info()->scope()->num_parameters(); int count = info()->scope()->num_parameters();
for (int i = 0; i < count; ++i) { for (int i = 0; i < count; ++i) {
if (var == info()->scope()->parameter(i)) { if (var == info()->scope()->parameter(i)) {
Bailout("assignment to parameter, function uses arguments object"); Bailout(
"assignment to parameter, function uses arguments object");
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment