OLD | NEW |
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 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 node->break_target()->Bind(); | 1311 node->break_target()->Bind(); |
1312 } | 1312 } |
1313 break; | 1313 break; |
1314 case DONT_KNOW: | 1314 case DONT_KNOW: |
1315 // We have to compile the test expression if it can be reached by | 1315 // We have to compile the test expression if it can be reached by |
1316 // control flow falling out of the body or via continue. | 1316 // control flow falling out of the body or via continue. |
1317 if (node->continue_target()->is_linked()) { | 1317 if (node->continue_target()->is_linked()) { |
1318 node->continue_target()->Bind(); | 1318 node->continue_target()->Bind(); |
1319 } | 1319 } |
1320 if (has_valid_frame()) { | 1320 if (has_valid_frame()) { |
| 1321 Comment cmnt(masm_, "[ DoWhileCondition"); |
| 1322 CodeForDoWhileConditionPosition(node); |
1321 ControlDestination dest(&body, node->break_target(), false); | 1323 ControlDestination dest(&body, node->break_target(), false); |
1322 LoadCondition(node->cond(), &dest, true); | 1324 LoadCondition(node->cond(), &dest, true); |
1323 } | 1325 } |
1324 if (node->break_target()->is_linked()) { | 1326 if (node->break_target()->is_linked()) { |
1325 node->break_target()->Bind(); | 1327 node->break_target()->Bind(); |
1326 } | 1328 } |
1327 break; | 1329 break; |
1328 } | 1330 } |
1329 | 1331 |
1330 DecrementLoopNesting(); | 1332 DecrementLoopNesting(); |
(...skipping 6504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7835 masm.GetCode(&desc); | 7837 masm.GetCode(&desc); |
7836 // Call the function from C++. | 7838 // Call the function from C++. |
7837 return FUNCTION_CAST<ModuloFunction>(buffer); | 7839 return FUNCTION_CAST<ModuloFunction>(buffer); |
7838 } | 7840 } |
7839 | 7841 |
7840 #endif | 7842 #endif |
7841 | 7843 |
7842 #undef __ | 7844 #undef __ |
7843 | 7845 |
7844 } } // namespace v8::internal | 7846 } } // namespace v8::internal |
OLD | NEW |