| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1122 __ lw(temp, ContextOperand(current, Context::EXTENSION_INDEX)); | 1122 __ lw(temp, ContextOperand(current, Context::EXTENSION_INDEX)); |
| 1123 __ Branch(slow, ne, temp, Operand(zero_reg)); | 1123 __ Branch(slow, ne, temp, Operand(zero_reg)); |
| 1124 } | 1124 } |
| 1125 // Load next context in chain. | 1125 // Load next context in chain. |
| 1126 __ lw(next, ContextOperand(current, Context::PREVIOUS_INDEX)); | 1126 __ lw(next, ContextOperand(current, Context::PREVIOUS_INDEX)); |
| 1127 // Walk the rest of the chain without clobbering cp. | 1127 // Walk the rest of the chain without clobbering cp. |
| 1128 current = next; | 1128 current = next; |
| 1129 } | 1129 } |
| 1130 // If no outer scope calls eval, we do not need to check more | 1130 // If no outer scope calls eval, we do not need to check more |
| 1131 // context extensions. | 1131 // context extensions. |
| 1132 if (!s->outer_scope_calls_eval() || s->is_eval_scope()) break; | 1132 if (!s->outer_scope_calls_non_strict_eval() || s->is_eval_scope()) break; |
| 1133 s = s->outer_scope(); | 1133 s = s->outer_scope(); |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 if (s->is_eval_scope()) { | 1136 if (s->is_eval_scope()) { |
| 1137 Label loop, fast; | 1137 Label loop, fast; |
| 1138 if (!current.is(next)) { | 1138 if (!current.is(next)) { |
| 1139 __ Move(next, current); | 1139 __ Move(next, current); |
| 1140 } | 1140 } |
| 1141 __ bind(&loop); | 1141 __ bind(&loop); |
| 1142 // Terminate at global context. | 1142 // Terminate at global context. |
| (...skipping 3100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4243 *context_length = 0; | 4243 *context_length = 0; |
| 4244 return previous_; | 4244 return previous_; |
| 4245 } | 4245 } |
| 4246 | 4246 |
| 4247 | 4247 |
| 4248 #undef __ | 4248 #undef __ |
| 4249 | 4249 |
| 4250 } } // namespace v8::internal | 4250 } } // namespace v8::internal |
| 4251 | 4251 |
| 4252 #endif // V8_TARGET_ARCH_MIPS | 4252 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |