Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 7904008: Introduce with scope and rework variable resolution. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Latest version. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/contexts.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/contexts.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698