| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 | 70 |
| 71 void BreakableStatementChecker::VisitExportDeclaration( | 71 void BreakableStatementChecker::VisitExportDeclaration( |
| 72 ExportDeclaration* decl) { | 72 ExportDeclaration* decl) { |
| 73 } | 73 } |
| 74 | 74 |
| 75 | 75 |
| 76 void BreakableStatementChecker::VisitModuleLiteral(ModuleLiteral* module) { | 76 void BreakableStatementChecker::VisitModuleLiteral(ModuleLiteral* module) { |
| 77 } | 77 } |
| 78 | 78 |
| 79 |
| 79 void BreakableStatementChecker::VisitModuleVariable(ModuleVariable* module) { | 80 void BreakableStatementChecker::VisitModuleVariable(ModuleVariable* module) { |
| 80 } | 81 } |
| 81 | 82 |
| 83 |
| 82 void BreakableStatementChecker::VisitModulePath(ModulePath* module) { | 84 void BreakableStatementChecker::VisitModulePath(ModulePath* module) { |
| 83 } | 85 } |
| 84 | 86 |
| 87 |
| 85 void BreakableStatementChecker::VisitModuleUrl(ModuleUrl* module) { | 88 void BreakableStatementChecker::VisitModuleUrl(ModuleUrl* module) { |
| 86 } | 89 } |
| 87 | 90 |
| 88 | 91 |
| 89 void BreakableStatementChecker::VisitModuleStatement(ModuleStatement* stmt) { | 92 void BreakableStatementChecker::VisitModuleStatement(ModuleStatement* stmt) { |
| 90 } | 93 } |
| 91 | 94 |
| 92 | 95 |
| 93 void BreakableStatementChecker::VisitBlock(Block* stmt) { | 96 void BreakableStatementChecker::VisitBlock(Block* stmt) { |
| 94 } | 97 } |
| (...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 } | 936 } |
| 934 | 937 |
| 935 | 938 |
| 936 void FullCodeGenerator::EmitGeneratorThrow(CallRuntime* expr) { | 939 void FullCodeGenerator::EmitGeneratorThrow(CallRuntime* expr) { |
| 937 ZoneList<Expression*>* args = expr->arguments(); | 940 ZoneList<Expression*>* args = expr->arguments(); |
| 938 ASSERT(args->length() == 2); | 941 ASSERT(args->length() == 2); |
| 939 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); | 942 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); |
| 940 } | 943 } |
| 941 | 944 |
| 942 | 945 |
| 946 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) { |
| 947 context()->Plug(handle(Smi::FromInt(0), isolate())); |
| 948 } |
| 949 |
| 950 |
| 943 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { | 951 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { |
| 944 switch (expr->op()) { | 952 switch (expr->op()) { |
| 945 case Token::COMMA: | 953 case Token::COMMA: |
| 946 return VisitComma(expr); | 954 return VisitComma(expr); |
| 947 case Token::OR: | 955 case Token::OR: |
| 948 case Token::AND: | 956 case Token::AND: |
| 949 return VisitLogicalExpression(expr); | 957 return VisitLogicalExpression(expr); |
| 950 default: | 958 default: |
| 951 return VisitArithmeticExpression(expr); | 959 return VisitArithmeticExpression(expr); |
| 952 } | 960 } |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1608 } | 1616 } |
| 1609 | 1617 |
| 1610 return false; | 1618 return false; |
| 1611 } | 1619 } |
| 1612 | 1620 |
| 1613 | 1621 |
| 1614 #undef __ | 1622 #undef __ |
| 1615 | 1623 |
| 1616 | 1624 |
| 1617 } } // namespace v8::internal | 1625 } } // namespace v8::internal |
| OLD | NEW |