OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 } | 933 } |
934 | 934 |
935 | 935 |
936 void FullCodeGenerator::EmitGeneratorThrow(CallRuntime* expr) { | 936 void FullCodeGenerator::EmitGeneratorThrow(CallRuntime* expr) { |
937 ZoneList<Expression*>* args = expr->arguments(); | 937 ZoneList<Expression*>* args = expr->arguments(); |
938 ASSERT(args->length() == 2); | 938 ASSERT(args->length() == 2); |
939 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); | 939 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); |
940 } | 940 } |
941 | 941 |
942 | 942 |
| 943 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) { |
| 944 context()->Plug(handle(Smi::FromInt(0), isolate())); |
| 945 } |
| 946 |
| 947 |
943 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { | 948 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { |
944 switch (expr->op()) { | 949 switch (expr->op()) { |
945 case Token::COMMA: | 950 case Token::COMMA: |
946 return VisitComma(expr); | 951 return VisitComma(expr); |
947 case Token::OR: | 952 case Token::OR: |
948 case Token::AND: | 953 case Token::AND: |
949 return VisitLogicalExpression(expr); | 954 return VisitLogicalExpression(expr); |
950 default: | 955 default: |
951 return VisitArithmeticExpression(expr); | 956 return VisitArithmeticExpression(expr); |
952 } | 957 } |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1608 } | 1613 } |
1609 | 1614 |
1610 return false; | 1615 return false; |
1611 } | 1616 } |
1612 | 1617 |
1613 | 1618 |
1614 #undef __ | 1619 #undef __ |
1615 | 1620 |
1616 | 1621 |
1617 } } // namespace v8::internal | 1622 } } // namespace v8::internal |
OLD | NEW |