| 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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 998 } | 998 } | 
| 999 | 999 | 
| 1000 | 1000 | 
| 1001 void FullCodeGenerator::EmitMaxSmi(CallRuntime* expr) { | 1001 void FullCodeGenerator::EmitMaxSmi(CallRuntime* expr) { | 
| 1002   ASSERT(expr->arguments()->length() == 0); | 1002   ASSERT(expr->arguments()->length() == 0); | 
| 1003   masm()->CallRuntime(Runtime::kMaxSmi, 0); | 1003   masm()->CallRuntime(Runtime::kMaxSmi, 0); | 
| 1004   context()->Plug(result_register()); | 1004   context()->Plug(result_register()); | 
| 1005 } | 1005 } | 
| 1006 | 1006 | 
| 1007 | 1007 | 
| 1008 void FullCodeGenerator::EmitTypedArrayMaxSizeInHeap(CallRuntime* expr) { |  | 
| 1009   ASSERT(expr->arguments()->length() == 0); |  | 
| 1010   masm()->CallRuntime(Runtime::kTypedArrayMaxSizeInHeap, 0); |  | 
| 1011   context()->Plug(result_register()); |  | 
| 1012 } |  | 
| 1013 |  | 
| 1014 |  | 
| 1015 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { | 1008 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { | 
| 1016   switch (expr->op()) { | 1009   switch (expr->op()) { | 
| 1017     case Token::COMMA: | 1010     case Token::COMMA: | 
| 1018       return VisitComma(expr); | 1011       return VisitComma(expr); | 
| 1019     case Token::OR: | 1012     case Token::OR: | 
| 1020     case Token::AND: | 1013     case Token::AND: | 
| 1021       return VisitLogicalExpression(expr); | 1014       return VisitLogicalExpression(expr); | 
| 1022     default: | 1015     default: | 
| 1023       return VisitArithmeticExpression(expr); | 1016       return VisitArithmeticExpression(expr); | 
| 1024   } | 1017   } | 
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1790   } | 1783   } | 
| 1791   return true; | 1784   return true; | 
| 1792 } | 1785 } | 
| 1793 #endif  // DEBUG | 1786 #endif  // DEBUG | 
| 1794 | 1787 | 
| 1795 | 1788 | 
| 1796 #undef __ | 1789 #undef __ | 
| 1797 | 1790 | 
| 1798 | 1791 | 
| 1799 } }  // namespace v8::internal | 1792 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|