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

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

Issue 6976028: Reduced the code ping-pong between the full code generator and contexts a bit. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 7 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
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 3983 matching lines...) Expand 10 before | Expand all | Expand 10 after
3994 __ bind(&slow); 3994 __ bind(&slow);
3995 __ push(esi); 3995 __ push(esi);
3996 __ push(Immediate(proxy->name())); 3996 __ push(Immediate(proxy->name()));
3997 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2); 3997 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2);
3998 PrepareForBailout(expr, TOS_REG); 3998 PrepareForBailout(expr, TOS_REG);
3999 __ bind(&done); 3999 __ bind(&done);
4000 4000
4001 context()->Plug(eax); 4001 context()->Plug(eax);
4002 } else { 4002 } else {
4003 // This expression cannot throw a reference error at the top level. 4003 // This expression cannot throw a reference error at the top level.
4004 context()->HandleExpression(expr); 4004 VisitInSameContext(expr);
4005 } 4005 }
4006 } 4006 }
4007 4007
4008 4008
4009 bool FullCodeGenerator::TryLiteralCompare(Token::Value op, 4009 bool FullCodeGenerator::TryLiteralCompare(Token::Value op,
4010 Expression* left, 4010 Expression* left,
4011 Expression* right, 4011 Expression* right,
4012 Label* if_true, 4012 Label* if_true,
4013 Label* if_false, 4013 Label* if_false,
4014 Label* fall_through) { 4014 Label* fall_through) {
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
4329 // And return. 4329 // And return.
4330 __ ret(0); 4330 __ ret(0);
4331 } 4331 }
4332 4332
4333 4333
4334 #undef __ 4334 #undef __
4335 4335
4336 } } // namespace v8::internal 4336 } } // namespace v8::internal
4337 4337
4338 #endif // V8_TARGET_ARCH_IA32 4338 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/full-codegen.cc ('K') | « src/full-codegen.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698