| 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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 ASSERT(args->length() == 2); | 932 ASSERT(args->length() == 2); |
| 933 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); | 933 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); |
| 934 } | 934 } |
| 935 | 935 |
| 936 | 936 |
| 937 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) { | 937 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) { |
| 938 context()->Plug(handle(Smi::FromInt(0), isolate())); | 938 context()->Plug(handle(Smi::FromInt(0), isolate())); |
| 939 } | 939 } |
| 940 | 940 |
| 941 | 941 |
| 942 void FullCodeGenerator::EmitDoubleHi(CallRuntime* expr) { |
| 943 ZoneList<Expression*>* args = expr->arguments(); |
| 944 ASSERT(args->length() == 1); |
| 945 VisitForStackValue(args->at(0)); |
| 946 masm()->CallRuntime(Runtime::kDoubleHi, 1); |
| 947 context()->Plug(result_register()); |
| 948 } |
| 949 |
| 950 |
| 951 void FullCodeGenerator::EmitDoubleLo(CallRuntime* expr) { |
| 952 ZoneList<Expression*>* args = expr->arguments(); |
| 953 ASSERT(args->length() == 1); |
| 954 VisitForStackValue(args->at(0)); |
| 955 masm()->CallRuntime(Runtime::kDoubleLo, 1); |
| 956 context()->Plug(result_register()); |
| 957 } |
| 958 |
| 959 |
| 960 void FullCodeGenerator::EmitConstructDouble(CallRuntime* expr) { |
| 961 ZoneList<Expression*>* args = expr->arguments(); |
| 962 ASSERT(args->length() == 2); |
| 963 VisitForStackValue(args->at(0)); |
| 964 VisitForStackValue(args->at(1)); |
| 965 masm()->CallRuntime(Runtime::kConstructDouble, 2); |
| 966 context()->Plug(result_register()); |
| 967 } |
| 968 |
| 969 |
| 942 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { | 970 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { |
| 943 switch (expr->op()) { | 971 switch (expr->op()) { |
| 944 case Token::COMMA: | 972 case Token::COMMA: |
| 945 return VisitComma(expr); | 973 return VisitComma(expr); |
| 946 case Token::OR: | 974 case Token::OR: |
| 947 case Token::AND: | 975 case Token::AND: |
| 948 return VisitLogicalExpression(expr); | 976 return VisitLogicalExpression(expr); |
| 949 default: | 977 default: |
| 950 return VisitArithmeticExpression(expr); | 978 return VisitArithmeticExpression(expr); |
| 951 } | 979 } |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 } | 1746 } |
| 1719 return true; | 1747 return true; |
| 1720 } | 1748 } |
| 1721 #endif // DEBUG | 1749 #endif // DEBUG |
| 1722 | 1750 |
| 1723 | 1751 |
| 1724 #undef __ | 1752 #undef __ |
| 1725 | 1753 |
| 1726 | 1754 |
| 1727 } } // namespace v8::internal | 1755 } } // namespace v8::internal |
| OLD | NEW |