OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 Visit(expr->expression()); | 436 Visit(expr->expression()); |
437 Variable* var = expr->expression()->AsVariableProxy()->AsVariable(); | 437 Variable* var = expr->expression()->AsVariableProxy()->AsVariable(); |
438 if (var != NULL && var->IsStackAllocated()) { | 438 if (var != NULL && var->IsStackAllocated()) { |
439 definitions_.Add(expr); | 439 definitions_.Add(expr); |
440 } | 440 } |
441 graph_.AppendInstruction(expr); | 441 graph_.AppendInstruction(expr); |
442 } | 442 } |
443 | 443 |
444 | 444 |
445 void FlowGraphBuilder::VisitBinaryOperation(BinaryOperation* expr) { | 445 void FlowGraphBuilder::VisitBinaryOperation(BinaryOperation* expr) { |
446 | |
447 switch (expr->op()) { | 446 switch (expr->op()) { |
448 case Token::COMMA: | 447 case Token::COMMA: |
449 case Token::OR: | 448 case Token::OR: |
450 case Token::AND: | 449 case Token::AND: |
451 SetStackOverflow(); | 450 SetStackOverflow(); |
452 break; | 451 break; |
453 | 452 |
454 case Token::BIT_OR: | 453 case Token::BIT_OR: |
455 case Token::BIT_XOR: | 454 case Token::BIT_XOR: |
456 case Token::BIT_AND: | 455 case Token::BIT_AND: |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1395 for (int i = postorder->length() - 1; i >= 0; i--) { | 1394 for (int i = postorder->length() - 1; i >= 0; i--) { |
1396 postorder->at(i)->PrintText(); | 1395 postorder->at(i)->PrintText(); |
1397 } | 1396 } |
1398 } | 1397 } |
1399 | 1398 |
1400 | 1399 |
1401 #endif // defined(DEBUG) | 1400 #endif // defined(DEBUG) |
1402 | 1401 |
1403 | 1402 |
1404 } } // namespace v8::internal | 1403 } } // namespace v8::internal |
OLD | NEW |