OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 break; | 861 break; |
862 } | 862 } |
863 | 863 |
864 default: | 864 default: |
865 // other cases should have been handled before this point. | 865 // other cases should have been handled before this point. |
866 UNREACHABLE(); | 866 UNREACHABLE(); |
867 break; | 867 break; |
868 } | 868 } |
869 | 869 |
870 GenericBinaryOpStub igostub(op_); | 870 GenericBinaryOpStub igostub(op_); |
871 Result arg0 = generator()->allocator()->Allocate(r0); | 871 Result arg0 = generator()->allocator()->Allocate(r1); |
872 ASSERT(arg0.is_valid()); | 872 ASSERT(arg0.is_valid()); |
873 Result arg1 = generator()->allocator()->Allocate(r1); | 873 Result arg1 = generator()->allocator()->Allocate(r0); |
874 ASSERT(arg1.is_valid()); | 874 ASSERT(arg1.is_valid()); |
875 generator()->frame()->CallStub(&igostub, &arg0, &arg1, 0); | 875 generator()->frame()->CallStub(&igostub, &arg0, &arg1); |
876 exit_.Jump(); | 876 exit_.Jump(); |
877 } | 877 } |
878 | 878 |
879 | 879 |
880 void CodeGenerator::SmiOperation(Token::Value op, | 880 void CodeGenerator::SmiOperation(Token::Value op, |
881 Handle<Object> value, | 881 Handle<Object> value, |
882 bool reversed) { | 882 bool reversed) { |
883 VirtualFrame::SpilledScope spilled_scope(this); | 883 VirtualFrame::SpilledScope spilled_scope(this); |
884 // NOTE: This is an attempt to inline (a bit) more of the code for | 884 // NOTE: This is an attempt to inline (a bit) more of the code for |
885 // some possible smi operations (like + and -) when (at least) one | 885 // some possible smi operations (like + and -) when (at least) one |
(...skipping 4334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5220 __ mov(r2, Operand(0)); | 5220 __ mov(r2, Operand(0)); |
5221 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); | 5221 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); |
5222 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), | 5222 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), |
5223 RelocInfo::CODE_TARGET); | 5223 RelocInfo::CODE_TARGET); |
5224 } | 5224 } |
5225 | 5225 |
5226 | 5226 |
5227 #undef __ | 5227 #undef __ |
5228 | 5228 |
5229 } } // namespace v8::internal | 5229 } } // namespace v8::internal |
OLD | NEW |