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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/ast.h » ('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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698