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 __ tst(temp, temp); | 1122 __ tst(temp, temp); |
1123 __ b(ne, slow); | 1123 __ b(ne, slow); |
1124 } | 1124 } |
1125 // Load next context in chain. | 1125 // Load next context in chain. |
1126 __ ldr(next, ContextOperand(current, Context::PREVIOUS_INDEX)); | 1126 __ ldr(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 3076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4219 *context_length = 0; | 4219 *context_length = 0; |
4220 return previous_; | 4220 return previous_; |
4221 } | 4221 } |
4222 | 4222 |
4223 | 4223 |
4224 #undef __ | 4224 #undef __ |
4225 | 4225 |
4226 } } // namespace v8::internal | 4226 } } // namespace v8::internal |
4227 | 4227 |
4228 #endif // V8_TARGET_ARCH_ARM | 4228 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |