| 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 5991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6002 break; | 6002 break; |
| 6003 } | 6003 } |
| 6004 | 6004 |
| 6005 default: UNREACHABLE(); | 6005 default: UNREACHABLE(); |
| 6006 } | 6006 } |
| 6007 // This code should be unreachable. | 6007 // This code should be unreachable. |
| 6008 __ stop("Unreachable"); | 6008 __ stop("Unreachable"); |
| 6009 } | 6009 } |
| 6010 | 6010 |
| 6011 | 6011 |
| 6012 Code* GetBinaryOpStub(int minor_key) { |
| 6013 return NULL; |
| 6014 } |
| 6015 |
| 6016 |
| 6017 #ifdef DEBUG |
| 6018 void TraceBinaryOp(int old_key, int new_key) {} |
| 6019 #endif // DEBUG |
| 6020 |
| 6021 |
| 6012 void StackCheckStub::Generate(MacroAssembler* masm) { | 6022 void StackCheckStub::Generate(MacroAssembler* masm) { |
| 6013 // Do tail-call to runtime routine. Runtime routines expect at least one | 6023 // Do tail-call to runtime routine. Runtime routines expect at least one |
| 6014 // argument, so give it a Smi. | 6024 // argument, so give it a Smi. |
| 6015 __ mov(r0, Operand(Smi::FromInt(0))); | 6025 __ mov(r0, Operand(Smi::FromInt(0))); |
| 6016 __ push(r0); | 6026 __ push(r0); |
| 6017 __ TailCallRuntime(ExternalReference(Runtime::kStackGuard), 1, 1); | 6027 __ TailCallRuntime(ExternalReference(Runtime::kStackGuard), 1, 1); |
| 6018 | 6028 |
| 6019 __ StubReturn(1); | 6029 __ StubReturn(1); |
| 6020 } | 6030 } |
| 6021 | 6031 |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6719 ASSERT((static_cast<unsigned>(cc_) >> 26) < (1 << 16)); | 6729 ASSERT((static_cast<unsigned>(cc_) >> 26) < (1 << 16)); |
| 6720 int nnn_value = (never_nan_nan_ ? 2 : 0); | 6730 int nnn_value = (never_nan_nan_ ? 2 : 0); |
| 6721 if (cc_ != eq) nnn_value = 0; // Avoid duplicate stubs. | 6731 if (cc_ != eq) nnn_value = 0; // Avoid duplicate stubs. |
| 6722 return (static_cast<unsigned>(cc_) >> 26) | nnn_value | (strict_ ? 1 : 0); | 6732 return (static_cast<unsigned>(cc_) >> 26) | nnn_value | (strict_ ? 1 : 0); |
| 6723 } | 6733 } |
| 6724 | 6734 |
| 6725 | 6735 |
| 6726 #undef __ | 6736 #undef __ |
| 6727 | 6737 |
| 6728 } } // namespace v8::internal | 6738 } } // namespace v8::internal |
| OLD | NEW |