| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 ASSERT(kSmiTag == 0); | 172 ASSERT(kSmiTag == 0); |
| 173 shl(reg, kSmiTagSize); | 173 shl(reg, kSmiTagSize); |
| 174 } | 174 } |
| 175 void SmiUntag(Register reg) { | 175 void SmiUntag(Register reg) { |
| 176 sar(reg, kSmiTagSize); | 176 sar(reg, kSmiTagSize); |
| 177 } | 177 } |
| 178 | 178 |
| 179 // Abort execution if argument is not a number. Used in debug code. | 179 // Abort execution if argument is not a number. Used in debug code. |
| 180 void AbortIfNotNumber(Register object, const char* msg); | 180 void AbortIfNotNumber(Register object, const char* msg); |
| 181 | 181 |
| 182 // Abort execution if argument is not a smi. Used in debug code. |
| 183 void AbortIfNotSmi(Register object, const char* msg); |
| 184 |
| 182 // --------------------------------------------------------------------------- | 185 // --------------------------------------------------------------------------- |
| 183 // Exception handling | 186 // Exception handling |
| 184 | 187 |
| 185 // Push a new try handler and link into try handler chain. The return | 188 // Push a new try handler and link into try handler chain. The return |
| 186 // address must be pushed before calling this helper. | 189 // address must be pushed before calling this helper. |
| 187 void PushTryHandler(CodeLocation try_location, HandlerType type); | 190 void PushTryHandler(CodeLocation try_location, HandlerType type); |
| 188 | 191 |
| 189 // Unlink the stack handler on top of the stack from the try handler chain. | 192 // Unlink the stack handler on top of the stack from the try handler chain. |
| 190 void PopTryHandler(); | 193 void PopTryHandler(); |
| 191 | 194 |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 } \ | 567 } \ |
| 565 masm-> | 568 masm-> |
| 566 #else | 569 #else |
| 567 #define ACCESS_MASM(masm) masm-> | 570 #define ACCESS_MASM(masm) masm-> |
| 568 #endif | 571 #endif |
| 569 | 572 |
| 570 | 573 |
| 571 } } // namespace v8::internal | 574 } } // namespace v8::internal |
| 572 | 575 |
| 573 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 576 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |