| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 1e0b6f1f0960fffa3cec07f1c674955b4ee507bd..6e58300478c4418c4cc1043bf5ff599d6dbd1b81 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -1419,7 +1419,7 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
|
| // variables.
|
| switch (var->location()) {
|
| case Variable::UNALLOCATED: {
|
| - Comment cmnt(masm_, "Global variable");
|
| + Comment cmnt(masm_, "[ Global variable");
|
| // Use inline caching. Variable name is passed in ecx and the global
|
| // object in eax.
|
| __ mov(edx, GlobalObjectOperand());
|
| @@ -1432,9 +1432,8 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
|
| case Variable::PARAMETER:
|
| case Variable::LOCAL:
|
| case Variable::CONTEXT: {
|
| - Comment cmnt(masm_, var->IsContextSlot()
|
| - ? "Context variable"
|
| - : "Stack variable");
|
| + Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable"
|
| + : "[ Stack variable");
|
| if (var->binding_needs_init()) {
|
| // var->scope() may be NULL when the proxy is located in eval code and
|
| // refers to a potential outside binding. Currently those bindings are
|
| @@ -1496,12 +1495,12 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
|
| }
|
|
|
| case Variable::LOOKUP: {
|
| + Comment cmnt(masm_, "[ Lookup variable");
|
| Label done, slow;
|
| // Generate code for loading from variables potentially shadowed
|
| // by eval-introduced variables.
|
| EmitDynamicLookupFastCase(var, NOT_INSIDE_TYPEOF, &slow, &done);
|
| __ bind(&slow);
|
| - Comment cmnt(masm_, "Lookup variable");
|
| __ push(esi); // Context.
|
| __ push(Immediate(var->name()));
|
| __ CallRuntime(Runtime::kLoadContextSlot, 2);
|
| @@ -4489,7 +4488,7 @@ void FullCodeGenerator::VisitForTypeofValue(Expression* expr) {
|
| ASSERT(!context()->IsTest());
|
|
|
| if (proxy != NULL && proxy->var()->IsUnallocated()) {
|
| - Comment cmnt(masm_, "Global variable");
|
| + Comment cmnt(masm_, "[ Global variable");
|
| __ mov(edx, GlobalObjectOperand());
|
| __ mov(ecx, Immediate(proxy->name()));
|
| // Use a regular load, not a contextual load, to avoid a reference
|
| @@ -4498,6 +4497,7 @@ void FullCodeGenerator::VisitForTypeofValue(Expression* expr) {
|
| PrepareForBailout(expr, TOS_REG);
|
| context()->Plug(eax);
|
| } else if (proxy != NULL && proxy->var()->IsLookupSlot()) {
|
| + Comment cmnt(masm_, "[ Lookup slot");
|
| Label done, slow;
|
|
|
| // Generate code for loading from variables potentially shadowed
|
|
|