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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 } else if (strcmp("_CallFunction", *name->ToCString()) == 0) { | 912 } else if (strcmp("_CallFunction", *name->ToCString()) == 0) { |
913 EmitCallFunction(expr->arguments()); | 913 EmitCallFunction(expr->arguments()); |
914 } else if (strcmp("_RegExpConstructResult", *name->ToCString()) == 0) { | 914 } else if (strcmp("_RegExpConstructResult", *name->ToCString()) == 0) { |
915 EmitRegExpConstructResult(expr->arguments()); | 915 EmitRegExpConstructResult(expr->arguments()); |
916 } else if (strcmp("_SwapElements", *name->ToCString()) == 0) { | 916 } else if (strcmp("_SwapElements", *name->ToCString()) == 0) { |
917 EmitSwapElements(expr->arguments()); | 917 EmitSwapElements(expr->arguments()); |
918 } else if (strcmp("_GetFromCache", *name->ToCString()) == 0) { | 918 } else if (strcmp("_GetFromCache", *name->ToCString()) == 0) { |
919 EmitGetFromCache(expr->arguments()); | 919 EmitGetFromCache(expr->arguments()); |
920 } else if (strcmp("_IsRegExpEquivalent", *name->ToCString()) == 0) { | 920 } else if (strcmp("_IsRegExpEquivalent", *name->ToCString()) == 0) { |
921 EmitIsRegExpEquivalent(expr->arguments()); | 921 EmitIsRegExpEquivalent(expr->arguments()); |
| 922 } else if (strcmp("_IsStringWrapperSafeForDefaultValueOf", |
| 923 *name->ToCString()) == 0) { |
| 924 EmitIsStringWrapperSafeForDefaultValueOf(expr->arguments()); |
922 } else { | 925 } else { |
923 UNREACHABLE(); | 926 UNREACHABLE(); |
924 } | 927 } |
925 } | 928 } |
926 | 929 |
927 | 930 |
928 void FullCodeGenerator::EmitLogicalOperation(BinaryOperation* expr) { | 931 void FullCodeGenerator::EmitLogicalOperation(BinaryOperation* expr) { |
929 Label eval_right, done; | 932 Label eval_right, done; |
930 | 933 |
931 // Set up the appropriate context for the left subexpression based | 934 // Set up the appropriate context for the left subexpression based |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 // The macros used here must preserve the result register. | 1439 // The macros used here must preserve the result register. |
1437 __ Drop(stack_depth); | 1440 __ Drop(stack_depth); |
1438 __ PopTryHandler(); | 1441 __ PopTryHandler(); |
1439 return 0; | 1442 return 0; |
1440 } | 1443 } |
1441 | 1444 |
1442 #undef __ | 1445 #undef __ |
1443 | 1446 |
1444 | 1447 |
1445 } } // namespace v8::internal | 1448 } } // namespace v8::internal |
OLD | NEW |