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

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

Issue 6810015: Remove unnecessary AST node for ++ and -- operations. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 8 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/hydrogen.cc ('k') | src/parser.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 3817 matching lines...) Expand 10 before | Expand all | Expand 10 after
3828 __ push(eax); 3828 __ push(eax);
3829 EmitKeyedPropertyLoad(prop); 3829 EmitKeyedPropertyLoad(prop);
3830 } 3830 }
3831 } 3831 }
3832 3832
3833 // We need a second deoptimization point after loading the value 3833 // We need a second deoptimization point after loading the value
3834 // in case evaluating the property load my have a side effect. 3834 // in case evaluating the property load my have a side effect.
3835 if (assign_type == VARIABLE) { 3835 if (assign_type == VARIABLE) {
3836 PrepareForBailout(expr->expression(), TOS_REG); 3836 PrepareForBailout(expr->expression(), TOS_REG);
3837 } else { 3837 } else {
3838 PrepareForBailout(expr->increment(), TOS_REG); 3838 PrepareForBailoutForId(expr->CountId(), TOS_REG);
3839 } 3839 }
3840 3840
3841 // Call ToNumber only if operand is not a smi. 3841 // Call ToNumber only if operand is not a smi.
3842 NearLabel no_conversion; 3842 NearLabel no_conversion;
3843 if (ShouldInlineSmiCase(expr->op())) { 3843 if (ShouldInlineSmiCase(expr->op())) {
3844 __ test(eax, Immediate(kSmiTagMask)); 3844 __ test(eax, Immediate(kSmiTagMask));
3845 __ j(zero, &no_conversion); 3845 __ j(zero, &no_conversion);
3846 } 3846 }
3847 ToNumberStub convert_stub; 3847 ToNumberStub convert_stub;
3848 __ CallStub(&convert_stub); 3848 __ CallStub(&convert_stub);
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
4348 // And return. 4348 // And return.
4349 __ ret(0); 4349 __ ret(0);
4350 } 4350 }
4351 4351
4352 4352
4353 #undef __ 4353 #undef __
4354 4354
4355 } } // namespace v8::internal 4355 } } // namespace v8::internal
4356 4356
4357 #endif // V8_TARGET_ARCH_IA32 4357 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698