OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 | 497 |
498 template<typename Field> | 498 template<typename Field> |
499 void DecodeField(Register reg) { | 499 void DecodeField(Register reg) { |
500 static const int shift = Field::kShift; | 500 static const int shift = Field::kShift; |
501 static const int mask = (Field::kMask >> Field::kShift) << kSmiTagSize; | 501 static const int mask = (Field::kMask >> Field::kShift) << kSmiTagSize; |
502 sar(reg, shift); | 502 sar(reg, shift); |
503 and_(reg, Immediate(mask)); | 503 and_(reg, Immediate(mask)); |
504 } | 504 } |
505 void LoadPowerOf2(XMMRegister dst, Register scratch, int power); | 505 void LoadPowerOf2(XMMRegister dst, Register scratch, int power); |
506 | 506 |
507 // Abort execution if argument is not a number. Used in debug code. | 507 // Abort execution if argument is not a number, enabled via --debug-code. |
508 void AbortIfNotNumber(Register object); | 508 void AssertNumber(Register object); |
509 | 509 |
510 // Abort execution if argument is not a smi. Used in debug code. | 510 // Abort execution if argument is not a smi, enabled via --debug-code. |
511 void AbortIfNotSmi(Register object); | 511 void AssertSmi(Register object); |
512 | 512 |
513 // Abort execution if argument is a smi. Used in debug code. | 513 // Abort execution if argument is a smi, enabled via --debug-code. |
514 void AbortIfSmi(Register object); | 514 void AssertNotSmi(Register object); |
515 | 515 |
516 // Abort execution if argument is a string. Used in debug code. | 516 // Abort execution if argument is not a string, enabled via --debug-code. |
517 void AbortIfNotString(Register object); | 517 void AssertString(Register object); |
518 | 518 |
519 // --------------------------------------------------------------------------- | 519 // --------------------------------------------------------------------------- |
520 // Exception handling | 520 // Exception handling |
521 | 521 |
522 // Push a new try handler and link it into try handler chain. | 522 // Push a new try handler and link it into try handler chain. |
523 void PushTryHandler(StackHandler::Kind kind, int handler_index); | 523 void PushTryHandler(StackHandler::Kind kind, int handler_index); |
524 | 524 |
525 // Unlink the stack handler on top of the stack from the try handler chain. | 525 // Unlink the stack handler on top of the stack from the try handler chain. |
526 void PopTryHandler(); | 526 void PopTryHandler(); |
527 | 527 |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 } \ | 998 } \ |
999 masm-> | 999 masm-> |
1000 #else | 1000 #else |
1001 #define ACCESS_MASM(masm) masm-> | 1001 #define ACCESS_MASM(masm) masm-> |
1002 #endif | 1002 #endif |
1003 | 1003 |
1004 | 1004 |
1005 } } // namespace v8::internal | 1005 } } // namespace v8::internal |
1006 | 1006 |
1007 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1007 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |