Commit 7d89f0f3 authored by keuchel@chromium.org's avatar keuchel@chromium.org

Replace calls_eval() by calls_non_strict_eval() where possible.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9666 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d7f3985e
...@@ -1128,7 +1128,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var, ...@@ -1128,7 +1128,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var,
Scope* s = scope(); Scope* s = scope();
while (s != NULL) { while (s != NULL) {
if (s->num_heap_slots() > 0) { if (s->num_heap_slots() > 0) {
if (s->calls_eval()) { if (s->calls_non_strict_eval()) {
// Check that extension is NULL. // Check that extension is NULL.
__ ldr(temp, ContextOperand(current, Context::EXTENSION_INDEX)); __ ldr(temp, ContextOperand(current, Context::EXTENSION_INDEX));
__ tst(temp, temp); __ tst(temp, temp);
...@@ -1185,7 +1185,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, ...@@ -1185,7 +1185,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var,
for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) { for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) {
if (s->num_heap_slots() > 0) { if (s->num_heap_slots() > 0) {
if (s->calls_eval()) { if (s->calls_non_strict_eval()) {
// Check that extension is NULL. // Check that extension is NULL.
__ ldr(temp, ContextOperand(context, Context::EXTENSION_INDEX)); __ ldr(temp, ContextOperand(context, Context::EXTENSION_INDEX));
__ tst(temp, temp); __ tst(temp, temp);
......
...@@ -1109,7 +1109,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var, ...@@ -1109,7 +1109,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var,
Scope* s = scope(); Scope* s = scope();
while (s != NULL) { while (s != NULL) {
if (s->num_heap_slots() > 0) { if (s->num_heap_slots() > 0) {
if (s->calls_eval()) { if (s->calls_non_strict_eval()) {
// Check that extension is NULL. // Check that extension is NULL.
__ cmp(ContextOperand(context, Context::EXTENSION_INDEX), __ cmp(ContextOperand(context, Context::EXTENSION_INDEX),
Immediate(0)); Immediate(0));
...@@ -1168,7 +1168,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, ...@@ -1168,7 +1168,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var,
for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) { for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) {
if (s->num_heap_slots() > 0) { if (s->num_heap_slots() > 0) {
if (s->calls_eval()) { if (s->calls_non_strict_eval()) {
// Check that extension is NULL. // Check that extension is NULL.
__ cmp(ContextOperand(context, Context::EXTENSION_INDEX), __ cmp(ContextOperand(context, Context::EXTENSION_INDEX),
Immediate(0)); Immediate(0));
......
...@@ -1137,7 +1137,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var, ...@@ -1137,7 +1137,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var,
Scope* s = scope(); Scope* s = scope();
while (s != NULL) { while (s != NULL) {
if (s->num_heap_slots() > 0) { if (s->num_heap_slots() > 0) {
if (s->calls_eval()) { if (s->calls_non_strict_eval()) {
// Check that extension is NULL. // Check that extension is NULL.
__ lw(temp, ContextOperand(current, Context::EXTENSION_INDEX)); __ lw(temp, ContextOperand(current, Context::EXTENSION_INDEX));
__ Branch(slow, ne, temp, Operand(zero_reg)); __ Branch(slow, ne, temp, Operand(zero_reg));
...@@ -1191,7 +1191,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, ...@@ -1191,7 +1191,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var,
for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) { for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) {
if (s->num_heap_slots() > 0) { if (s->num_heap_slots() > 0) {
if (s->calls_eval()) { if (s->calls_non_strict_eval()) {
// Check that extension is NULL. // Check that extension is NULL.
__ lw(temp, ContextOperand(context, Context::EXTENSION_INDEX)); __ lw(temp, ContextOperand(context, Context::EXTENSION_INDEX));
__ Branch(slow, ne, temp, Operand(zero_reg)); __ Branch(slow, ne, temp, Operand(zero_reg));
......
...@@ -1085,7 +1085,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var, ...@@ -1085,7 +1085,7 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(Variable* var,
Scope* s = scope(); Scope* s = scope();
while (s != NULL) { while (s != NULL) {
if (s->num_heap_slots() > 0) { if (s->num_heap_slots() > 0) {
if (s->calls_eval()) { if (s->calls_non_strict_eval()) {
// Check that extension is NULL. // Check that extension is NULL.
__ cmpq(ContextOperand(context, Context::EXTENSION_INDEX), __ cmpq(ContextOperand(context, Context::EXTENSION_INDEX),
Immediate(0)); Immediate(0));
...@@ -1145,7 +1145,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, ...@@ -1145,7 +1145,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var,
for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) { for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) {
if (s->num_heap_slots() > 0) { if (s->num_heap_slots() > 0) {
if (s->calls_eval()) { if (s->calls_non_strict_eval()) {
// Check that extension is NULL. // Check that extension is NULL.
__ cmpq(ContextOperand(context, Context::EXTENSION_INDEX), __ cmpq(ContextOperand(context, Context::EXTENSION_INDEX),
Immediate(0)); Immediate(0));
......
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