| 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 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 __ j(not_equal, slow); | 1084 __ j(not_equal, slow); |
| 1085 } | 1085 } |
| 1086 // Load next context in chain. | 1086 // Load next context in chain. |
| 1087 __ movq(temp, ContextOperand(context, Context::PREVIOUS_INDEX)); | 1087 __ movq(temp, ContextOperand(context, Context::PREVIOUS_INDEX)); |
| 1088 // Walk the rest of the chain without clobbering rsi. | 1088 // Walk the rest of the chain without clobbering rsi. |
| 1089 context = temp; | 1089 context = temp; |
| 1090 } | 1090 } |
| 1091 // If no outer scope calls eval, we do not need to check more | 1091 // If no outer scope calls eval, we do not need to check more |
| 1092 // context extensions. If we have reached an eval scope, we check | 1092 // context extensions. If we have reached an eval scope, we check |
| 1093 // all extensions from this point. | 1093 // all extensions from this point. |
| 1094 if (!s->outer_scope_calls_eval() || s->is_eval_scope()) break; | 1094 if (!s->outer_scope_calls_non_strict_eval() || s->is_eval_scope()) break; |
| 1095 s = s->outer_scope(); | 1095 s = s->outer_scope(); |
| 1096 } | 1096 } |
| 1097 | 1097 |
| 1098 if (s != NULL && s->is_eval_scope()) { | 1098 if (s != NULL && s->is_eval_scope()) { |
| 1099 // Loop up the context chain. There is no frame effect so it is | 1099 // Loop up the context chain. There is no frame effect so it is |
| 1100 // safe to use raw labels here. | 1100 // safe to use raw labels here. |
| 1101 Label next, fast; | 1101 Label next, fast; |
| 1102 if (!context.is(temp)) { | 1102 if (!context.is(temp)) { |
| 1103 __ movq(temp, context); | 1103 __ movq(temp, context); |
| 1104 } | 1104 } |
| (...skipping 3046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4151 *context_length = 0; | 4151 *context_length = 0; |
| 4152 return previous_; | 4152 return previous_; |
| 4153 } | 4153 } |
| 4154 | 4154 |
| 4155 | 4155 |
| 4156 #undef __ | 4156 #undef __ |
| 4157 | 4157 |
| 4158 } } // namespace v8::internal | 4158 } } // namespace v8::internal |
| 4159 | 4159 |
| 4160 #endif // V8_TARGET_ARCH_X64 | 4160 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |