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

Side by Side Diff: src/x64/fast-codegen-x64.cc

Issue 542107: Add missing break in continue. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 11 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/ia32/fast-codegen-ia32.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 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 417
418 void FastCodeGenerator::Apply(Expression::Context context, 418 void FastCodeGenerator::Apply(Expression::Context context,
419 Label* materialize_true, 419 Label* materialize_true,
420 Label* materialize_false) { 420 Label* materialize_false) {
421 switch (context) { 421 switch (context) {
422 case Expression::kUninitialized: 422 case Expression::kUninitialized:
423 423
424 case Expression::kEffect: 424 case Expression::kEffect:
425 ASSERT_EQ(materialize_true, materialize_false); 425 ASSERT_EQ(materialize_true, materialize_false);
426 __ bind(materialize_true); 426 __ bind(materialize_true);
427 break;
427 428
428 case Expression::kValue: { 429 case Expression::kValue: {
429 Label done; 430 Label done;
430 switch (location_) { 431 switch (location_) {
431 case kAccumulator: 432 case kAccumulator:
432 __ bind(materialize_true); 433 __ bind(materialize_true);
433 __ Move(result_register(), Factory::true_value()); 434 __ Move(result_register(), Factory::true_value());
434 __ jmp(&done); 435 __ jmp(&done);
435 __ bind(materialize_false); 436 __ bind(materialize_false);
436 __ Move(result_register(), Factory::false_value()); 437 __ Move(result_register(), Factory::false_value());
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 __ movq(Operand(rsp, 0), rdx); 1811 __ movq(Operand(rsp, 0), rdx);
1811 // And return. 1812 // And return.
1812 __ ret(0); 1813 __ ret(0);
1813 } 1814 }
1814 1815
1815 1816
1816 #undef __ 1817 #undef __
1817 1818
1818 1819
1819 } } // namespace v8::internal 1820 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/fast-codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698