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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 ASSERT(args->length() == 2); | 943 ASSERT(args->length() == 2); |
944 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); | 944 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); |
945 } | 945 } |
946 | 946 |
947 | 947 |
948 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) { | 948 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) { |
949 context()->Plug(handle(Smi::FromInt(0), isolate())); | 949 context()->Plug(handle(Smi::FromInt(0), isolate())); |
950 } | 950 } |
951 | 951 |
952 | 952 |
| 953 void FullCodeGenerator::EmitDoubleHi(CallRuntime* expr) { |
| 954 ZoneList<Expression*>* args = expr->arguments(); |
| 955 ASSERT(args->length() == 1); |
| 956 VisitForStackValue(args->at(0)); |
| 957 masm()->CallRuntime(Runtime::kDoubleHi, 1); |
| 958 context()->Plug(result_register()); |
| 959 } |
| 960 |
| 961 |
| 962 void FullCodeGenerator::EmitDoubleLo(CallRuntime* expr) { |
| 963 ZoneList<Expression*>* args = expr->arguments(); |
| 964 ASSERT(args->length() == 1); |
| 965 VisitForStackValue(args->at(0)); |
| 966 masm()->CallRuntime(Runtime::kDoubleLo, 1); |
| 967 context()->Plug(result_register()); |
| 968 } |
| 969 |
| 970 |
| 971 void FullCodeGenerator::EmitConstructDouble(CallRuntime* expr) { |
| 972 ZoneList<Expression*>* args = expr->arguments(); |
| 973 ASSERT(args->length() == 2); |
| 974 VisitForStackValue(args->at(0)); |
| 975 VisitForStackValue(args->at(1)); |
| 976 masm()->CallRuntime(Runtime::kConstructDouble, 2); |
| 977 context()->Plug(result_register()); |
| 978 } |
| 979 |
| 980 |
953 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { | 981 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { |
954 switch (expr->op()) { | 982 switch (expr->op()) { |
955 case Token::COMMA: | 983 case Token::COMMA: |
956 return VisitComma(expr); | 984 return VisitComma(expr); |
957 case Token::OR: | 985 case Token::OR: |
958 case Token::AND: | 986 case Token::AND: |
959 return VisitLogicalExpression(expr); | 987 return VisitLogicalExpression(expr); |
960 default: | 988 default: |
961 return VisitArithmeticExpression(expr); | 989 return VisitArithmeticExpression(expr); |
962 } | 990 } |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1728 } | 1756 } |
1729 return true; | 1757 return true; |
1730 } | 1758 } |
1731 #endif // DEBUG | 1759 #endif // DEBUG |
1732 | 1760 |
1733 | 1761 |
1734 #undef __ | 1762 #undef __ |
1735 | 1763 |
1736 | 1764 |
1737 } } // namespace v8::internal | 1765 } } // namespace v8::internal |
OLD | NEW |