Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/full-codegen.cc

Issue 189533008: Revert "Introduce intrinsics for double values in Javascript." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 ASSERT(args->length() == 2); 945 ASSERT(args->length() == 2);
946 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW); 946 EmitGeneratorResume(args->at(0), args->at(1), JSGeneratorObject::THROW);
947 } 947 }
948 948
949 949
950 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) { 950 void FullCodeGenerator::EmitDebugBreakInOptimizedCode(CallRuntime* expr) {
951 context()->Plug(handle(Smi::FromInt(0), isolate())); 951 context()->Plug(handle(Smi::FromInt(0), isolate()));
952 } 952 }
953 953
954 954
955 void FullCodeGenerator::EmitDoubleHi(CallRuntime* expr) {
956 ZoneList<Expression*>* args = expr->arguments();
957 ASSERT(args->length() == 1);
958 VisitForStackValue(args->at(0));
959 masm()->CallRuntime(Runtime::kDoubleHi, 1);
960 context()->Plug(result_register());
961 }
962
963
964 void FullCodeGenerator::EmitDoubleLo(CallRuntime* expr) {
965 ZoneList<Expression*>* args = expr->arguments();
966 ASSERT(args->length() == 1);
967 VisitForStackValue(args->at(0));
968 masm()->CallRuntime(Runtime::kDoubleLo, 1);
969 context()->Plug(result_register());
970 }
971
972
973 void FullCodeGenerator::EmitConstructDouble(CallRuntime* expr) {
974 ZoneList<Expression*>* args = expr->arguments();
975 ASSERT(args->length() == 2);
976 VisitForStackValue(args->at(0));
977 VisitForStackValue(args->at(1));
978 masm()->CallRuntime(Runtime::kConstructDouble, 2);
979 context()->Plug(result_register());
980 }
981
982
983 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { 955 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) {
984 switch (expr->op()) { 956 switch (expr->op()) {
985 case Token::COMMA: 957 case Token::COMMA:
986 return VisitComma(expr); 958 return VisitComma(expr);
987 case Token::OR: 959 case Token::OR:
988 case Token::AND: 960 case Token::AND:
989 return VisitLogicalExpression(expr); 961 return VisitLogicalExpression(expr);
990 default: 962 default:
991 return VisitArithmeticExpression(expr); 963 return VisitArithmeticExpression(expr);
992 } 964 }
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1758 } 1730 }
1759 return true; 1731 return true;
1760 } 1732 }
1761 #endif // DEBUG 1733 #endif // DEBUG
1762 1734
1763 1735
1764 #undef __ 1736 #undef __
1765 1737
1766 1738
1767 } } // namespace v8::internal 1739 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698