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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 // Smi tagging support. | 170 // Smi tagging support. |
171 void SmiTag(Register reg) { | 171 void SmiTag(Register reg) { |
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. |
| 180 void AbortIfNotNumber(Register object, const char* msg); |
| 181 |
179 // --------------------------------------------------------------------------- | 182 // --------------------------------------------------------------------------- |
180 // Exception handling | 183 // Exception handling |
181 | 184 |
182 // Push a new try handler and link into try handler chain. The return | 185 // Push a new try handler and link into try handler chain. The return |
183 // address must be pushed before calling this helper. | 186 // address must be pushed before calling this helper. |
184 void PushTryHandler(CodeLocation try_location, HandlerType type); | 187 void PushTryHandler(CodeLocation try_location, HandlerType type); |
185 | 188 |
186 // Unlink the stack handler on top of the stack from the try handler chain. | 189 // Unlink the stack handler on top of the stack from the try handler chain. |
187 void PopTryHandler(); | 190 void PopTryHandler(); |
188 | 191 |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 } \ | 543 } \ |
541 masm-> | 544 masm-> |
542 #else | 545 #else |
543 #define ACCESS_MASM(masm) masm-> | 546 #define ACCESS_MASM(masm) masm-> |
544 #endif | 547 #endif |
545 | 548 |
546 | 549 |
547 } } // namespace v8::internal | 550 } } // namespace v8::internal |
548 | 551 |
549 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 552 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |