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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 Slot* slot = scope->parameter(i)->slot(); | 593 Slot* slot = scope->parameter(i)->slot(); |
594 if (slot != NULL && slot->type() == Slot::CONTEXT) { | 594 if (slot != NULL && slot->type() == Slot::CONTEXT) { |
595 if (FLAG_trace_bailout) { | 595 if (FLAG_trace_bailout) { |
596 PrintF("function has context-allocated parameters"); | 596 PrintF("function has context-allocated parameters"); |
597 } | 597 } |
598 return NORMAL; | 598 return NORMAL; |
599 } | 599 } |
600 } | 600 } |
601 } | 601 } |
602 | 602 |
603 if (scope->num_heap_slots() != 0) { | |
604 if (FLAG_trace_bailout) PrintF("function has context slots\n"); | |
605 return NORMAL; | |
606 } | |
607 if (scope->arguments() != NULL) { | 603 if (scope->arguments() != NULL) { |
608 if (FLAG_trace_bailout) PrintF("function uses 'arguments'\n"); | 604 if (FLAG_trace_bailout) PrintF("function uses 'arguments'\n"); |
609 return NORMAL; | 605 return NORMAL; |
610 } | 606 } |
611 | 607 |
612 has_supported_syntax_ = true; | 608 has_supported_syntax_ = true; |
613 VisitDeclarations(scope->declarations()); | 609 VisitDeclarations(scope->declarations()); |
614 if (!has_supported_syntax_) return NORMAL; | 610 if (!has_supported_syntax_) return NORMAL; |
615 | 611 |
616 VisitStatements(fun->body()); | 612 VisitStatements(fun->body()); |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 | 1099 |
1104 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 1100 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
1105 BAILOUT("ThisFunction"); | 1101 BAILOUT("ThisFunction"); |
1106 } | 1102 } |
1107 | 1103 |
1108 #undef BAILOUT | 1104 #undef BAILOUT |
1109 #undef CHECK_BAILOUT | 1105 #undef CHECK_BAILOUT |
1110 | 1106 |
1111 | 1107 |
1112 } } // namespace v8::internal | 1108 } } // namespace v8::internal |
OLD | NEW |