| 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 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 ZoneList<Expression*>* args = expr->arguments(); | 986 ZoneList<Expression*>* args = expr->arguments(); |
| 987 // Check all arguments to the call | 987 // Check all arguments to the call |
| 988 for (int i = 0; i < args->length(); i++) { | 988 for (int i = 0; i < args->length(); i++) { |
| 989 ProcessExpression(args->at(i), Expression::kValue); | 989 ProcessExpression(args->at(i), Expression::kValue); |
| 990 CHECK_BAILOUT; | 990 CHECK_BAILOUT; |
| 991 } | 991 } |
| 992 } | 992 } |
| 993 | 993 |
| 994 | 994 |
| 995 void CodeGenSelector::VisitCallRuntime(CallRuntime* expr) { | 995 void CodeGenSelector::VisitCallRuntime(CallRuntime* expr) { |
| 996 // In case of JS runtime function bail out. | |
| 997 if (expr->function() == NULL) BAILOUT("call JS runtime function"); | |
| 998 // Check for inline runtime call | 996 // Check for inline runtime call |
| 999 if (expr->name()->Get(0) == '_' && | 997 if (expr->name()->Get(0) == '_' && |
| 1000 CodeGenerator::FindInlineRuntimeLUT(expr->name()) != NULL) { | 998 CodeGenerator::FindInlineRuntimeLUT(expr->name()) != NULL) { |
| 1001 BAILOUT("inlined runtime call"); | 999 BAILOUT("inlined runtime call"); |
| 1002 } | 1000 } |
| 1003 // Check all arguments to the call. (Relies on TEMP meaning STACK.) | 1001 // Check all arguments to the call. (Relies on TEMP meaning STACK.) |
| 1004 for (int i = 0; i < expr->arguments()->length(); i++) { | 1002 for (int i = 0; i < expr->arguments()->length(); i++) { |
| 1005 ProcessExpression(expr->arguments()->at(i), Expression::kValue); | 1003 ProcessExpression(expr->arguments()->at(i), Expression::kValue); |
| 1006 CHECK_BAILOUT; | 1004 CHECK_BAILOUT; |
| 1007 } | 1005 } |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1117 | 1115 |
| 1118 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 1116 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
| 1119 BAILOUT("ThisFunction"); | 1117 BAILOUT("ThisFunction"); |
| 1120 } | 1118 } |
| 1121 | 1119 |
| 1122 #undef BAILOUT | 1120 #undef BAILOUT |
| 1123 #undef CHECK_BAILOUT | 1121 #undef CHECK_BAILOUT |
| 1124 | 1122 |
| 1125 | 1123 |
| 1126 } } // namespace v8::internal | 1124 } } // namespace v8::internal |
| OLD | NEW |