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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 __ j(not_equal, slow); | 1106 __ j(not_equal, slow); |
1107 } | 1107 } |
1108 // Load next context in chain. | 1108 // Load next context in chain. |
1109 __ mov(temp, ContextOperand(context, Context::PREVIOUS_INDEX)); | 1109 __ mov(temp, ContextOperand(context, Context::PREVIOUS_INDEX)); |
1110 // Walk the rest of the chain without clobbering esi. | 1110 // Walk the rest of the chain without clobbering esi. |
1111 context = temp; | 1111 context = temp; |
1112 } | 1112 } |
1113 // If no outer scope calls eval, we do not need to check more | 1113 // If no outer scope calls eval, we do not need to check more |
1114 // context extensions. If we have reached an eval scope, we check | 1114 // context extensions. If we have reached an eval scope, we check |
1115 // all extensions from this point. | 1115 // all extensions from this point. |
1116 if (!s->outer_scope_calls_eval() || s->is_eval_scope()) break; | 1116 if (!s->outer_scope_calls_non_strict_eval() || s->is_eval_scope()) break; |
1117 s = s->outer_scope(); | 1117 s = s->outer_scope(); |
1118 } | 1118 } |
1119 | 1119 |
1120 if (s != NULL && s->is_eval_scope()) { | 1120 if (s != NULL && s->is_eval_scope()) { |
1121 // Loop up the context chain. There is no frame effect so it is | 1121 // Loop up the context chain. There is no frame effect so it is |
1122 // safe to use raw labels here. | 1122 // safe to use raw labels here. |
1123 Label next, fast; | 1123 Label next, fast; |
1124 if (!context.is(temp)) { | 1124 if (!context.is(temp)) { |
1125 __ mov(temp, context); | 1125 __ mov(temp, context); |
1126 } | 1126 } |
(...skipping 3149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4276 *context_length = 0; | 4276 *context_length = 0; |
4277 return previous_; | 4277 return previous_; |
4278 } | 4278 } |
4279 | 4279 |
4280 | 4280 |
4281 #undef __ | 4281 #undef __ |
4282 | 4282 |
4283 } } // namespace v8::internal | 4283 } } // namespace v8::internal |
4284 | 4284 |
4285 #endif // V8_TARGET_ARCH_IA32 | 4285 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |