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

Side by Side Diff: src/x64/full-codegen-x64.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, 6 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
« src/full-codegen.cc ('K') | « src/mips/full-codegen-mips.cc ('k') | no next file » | 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 3959 matching lines...) Expand 10 before | Expand all | Expand 10 after
3970 __ bind(&slow); 3970 __ bind(&slow);
3971 __ push(rsi); 3971 __ push(rsi);
3972 __ Push(proxy->name()); 3972 __ Push(proxy->name());
3973 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2); 3973 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2);
3974 PrepareForBailout(expr, TOS_REG); 3974 PrepareForBailout(expr, TOS_REG);
3975 __ bind(&done); 3975 __ bind(&done);
3976 3976
3977 context()->Plug(rax); 3977 context()->Plug(rax);
3978 } else { 3978 } else {
3979 // This expression cannot throw a reference error at the top level. 3979 // This expression cannot throw a reference error at the top level.
3980 context()->HandleExpression(expr); 3980 VisitInSameContext(expr);
3981 } 3981 }
3982 } 3982 }
3983 3983
3984 3984
3985 bool FullCodeGenerator::TryLiteralCompare(Token::Value op, 3985 bool FullCodeGenerator::TryLiteralCompare(Token::Value op,
3986 Expression* left, 3986 Expression* left,
3987 Expression* right, 3987 Expression* right,
3988 Label* if_true, 3988 Label* if_true,
3989 Label* if_false, 3989 Label* if_false,
3990 Label* fall_through) { 3990 Label* fall_through) {
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
4309 __ ret(0); 4309 __ ret(0);
4310 } 4310 }
4311 4311
4312 4312
4313 #undef __ 4313 #undef __
4314 4314
4315 4315
4316 } } // namespace v8::internal 4316 } } // namespace v8::internal
4317 4317
4318 #endif // V8_TARGET_ARCH_X64 4318 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/full-codegen.cc ('K') | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698