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

Side by Side Diff: src/arm/codegen-arm.cc

Issue 385136: Step next should respect do/while condition block. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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/codegen-arm.h ('k') | src/ast.h » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 node->continue_target()->Bind(); 1576 node->continue_target()->Bind();
1577 } 1577 }
1578 break; 1578 break;
1579 case DONT_KNOW: 1579 case DONT_KNOW:
1580 // We have to compile the test expression if it can be reached by 1580 // We have to compile the test expression if it can be reached by
1581 // control flow falling out of the body or via continue. 1581 // control flow falling out of the body or via continue.
1582 if (node->continue_target()->is_linked()) { 1582 if (node->continue_target()->is_linked()) {
1583 node->continue_target()->Bind(); 1583 node->continue_target()->Bind();
1584 } 1584 }
1585 if (has_valid_frame()) { 1585 if (has_valid_frame()) {
1586 Comment cmnt(masm_, "[ DoWhileCondition");
1587 CodeForDoWhileConditionPosition(node);
1586 LoadConditionAndSpill(node->cond(), &body, node->break_target(), true); 1588 LoadConditionAndSpill(node->cond(), &body, node->break_target(), true);
1587 if (has_valid_frame()) { 1589 if (has_valid_frame()) {
1588 // A invalid frame here indicates that control did not 1590 // A invalid frame here indicates that control did not
1589 // fall out of the test expression. 1591 // fall out of the test expression.
1590 Branch(true, &body); 1592 Branch(true, &body);
1591 } 1593 }
1592 } 1594 }
1593 break; 1595 break;
1594 } 1596 }
1595 1597
(...skipping 4755 matching lines...) Expand 10 before | Expand all | Expand 10 after
6351 int CompareStub::MinorKey() { 6353 int CompareStub::MinorKey() {
6352 // Encode the two parameters in a unique 16 bit value. 6354 // Encode the two parameters in a unique 16 bit value.
6353 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); 6355 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15));
6354 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); 6356 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0);
6355 } 6357 }
6356 6358
6357 6359
6358 #undef __ 6360 #undef __
6359 6361
6360 } } // namespace v8::internal 6362 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698