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

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

Issue 548178: Add missing break. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 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/arm/full-codegen-arm.cc ('k') | src/x64/full-codegen-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 __ j(zero, &smi); 1505 __ j(zero, &smi);
1506 // Non-smi: call stub leaving result in accumulator register. 1506 // Non-smi: call stub leaving result in accumulator register.
1507 __ CallStub(&stub); 1507 __ CallStub(&stub);
1508 __ jmp(&done); 1508 __ jmp(&done);
1509 // Perform operation directly on Smis. 1509 // Perform operation directly on Smis.
1510 __ bind(&smi); 1510 __ bind(&smi);
1511 __ not_(result_register()); 1511 __ not_(result_register());
1512 __ and_(result_register(), ~kSmiTagMask); // Remove inverted smi-tag. 1512 __ and_(result_register(), ~kSmiTagMask); // Remove inverted smi-tag.
1513 __ bind(&done); 1513 __ bind(&done);
1514 Apply(context_, result_register()); 1514 Apply(context_, result_register());
1515 break;
1515 } 1516 }
1516 1517
1517 default: 1518 default:
1518 UNREACHABLE(); 1519 UNREACHABLE();
1519 } 1520 }
1520 } 1521 }
1521 1522
1522 1523
1523 void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { 1524 void FullCodeGenerator::VisitCountOperation(CountOperation* expr) {
1524 Comment cmnt(masm_, "[ CountOperation"); 1525 Comment cmnt(masm_, "[ CountOperation");
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1876 __ add(Operand(edx), Immediate(masm_->CodeObject())); 1877 __ add(Operand(edx), Immediate(masm_->CodeObject()));
1877 __ mov(Operand(esp, 0), edx); 1878 __ mov(Operand(esp, 0), edx);
1878 // And return. 1879 // And return.
1879 __ ret(0); 1880 __ ret(0);
1880 } 1881 }
1881 1882
1882 1883
1883 #undef __ 1884 #undef __
1884 1885
1885 } } // namespace v8::internal 1886 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698