OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 7859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7870 // If arguments are not passed in registers remove them from the stack before | 7870 // If arguments are not passed in registers remove them from the stack before |
7871 // returning. | 7871 // returning. |
7872 if (!HasArgumentsInRegisters()) { | 7872 if (!HasArgumentsInRegisters()) { |
7873 __ ret(2 * kPointerSize); // Remove both operands | 7873 __ ret(2 * kPointerSize); // Remove both operands |
7874 } else { | 7874 } else { |
7875 __ ret(0); | 7875 __ ret(0); |
7876 } | 7876 } |
7877 } | 7877 } |
7878 | 7878 |
7879 | 7879 |
| 7880 Code* GetBinaryOpStub(int minor_key) { |
| 7881 return NULL; |
| 7882 } |
| 7883 |
| 7884 |
| 7885 #ifdef DEBUG |
| 7886 void TraceBinaryOp(int old_key, int new_key) {} |
| 7887 #endif // DEBUG |
| 7888 |
| 7889 |
7880 int CompareStub::MinorKey() { | 7890 int CompareStub::MinorKey() { |
7881 // Encode the three parameters in a unique 16 bit value. | 7891 // Encode the three parameters in a unique 16 bit value. |
7882 ASSERT(static_cast<unsigned>(cc_) < (1 << 14)); | 7892 ASSERT(static_cast<unsigned>(cc_) < (1 << 14)); |
7883 int nnn_value = (never_nan_nan_ ? 2 : 0); | 7893 int nnn_value = (never_nan_nan_ ? 2 : 0); |
7884 if (cc_ != equal) nnn_value = 0; // Avoid duplicate stubs. | 7894 if (cc_ != equal) nnn_value = 0; // Avoid duplicate stubs. |
7885 return (static_cast<unsigned>(cc_) << 2) | nnn_value | (strict_ ? 1 : 0); | 7895 return (static_cast<unsigned>(cc_) << 2) | nnn_value | (strict_ ? 1 : 0); |
7886 } | 7896 } |
7887 | 7897 |
7888 | 7898 |
7889 const char* CompareStub::GetName() { | 7899 const char* CompareStub::GetName() { |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8243 masm.GetCode(&desc); | 8253 masm.GetCode(&desc); |
8244 // Call the function from C++. | 8254 // Call the function from C++. |
8245 return FUNCTION_CAST<ModuloFunction>(buffer); | 8255 return FUNCTION_CAST<ModuloFunction>(buffer); |
8246 } | 8256 } |
8247 | 8257 |
8248 #endif | 8258 #endif |
8249 | 8259 |
8250 #undef __ | 8260 #undef __ |
8251 | 8261 |
8252 } } // namespace v8::internal | 8262 } } // namespace v8::internal |
OLD | NEW |