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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 // FCmp is similar to integer cmp, but requires unsigned | 549 // FCmp is similar to integer cmp, but requires unsigned |
550 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). | 550 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). |
551 void FCmp(); | 551 void FCmp(); |
552 | 552 |
553 // Abort execution if argument is not a number. Used in debug code. | 553 // Abort execution if argument is not a number. Used in debug code. |
554 void AbortIfNotNumber(Register object); | 554 void AbortIfNotNumber(Register object); |
555 | 555 |
556 // Abort execution if argument is not a smi. Used in debug code. | 556 // Abort execution if argument is not a smi. Used in debug code. |
557 void AbortIfNotSmi(Register object); | 557 void AbortIfNotSmi(Register object); |
558 | 558 |
| 559 // Abort execution if argument is not the root value with the given index. |
| 560 void AbortIfNotRootValue(Register src, |
| 561 Heap::RootListIndex root_value_index, |
| 562 const char* message); |
| 563 |
559 // --------------------------------------------------------------------------- | 564 // --------------------------------------------------------------------------- |
560 // Exception handling | 565 // Exception handling |
561 | 566 |
562 // Push a new try handler and link into try handler chain. The return | 567 // Push a new try handler and link into try handler chain. The return |
563 // address must be pushed before calling this helper. | 568 // address must be pushed before calling this helper. |
564 void PushTryHandler(CodeLocation try_location, HandlerType type); | 569 void PushTryHandler(CodeLocation try_location, HandlerType type); |
565 | 570 |
566 // Unlink the stack handler on top of the stack from the try handler chain. | 571 // Unlink the stack handler on top of the stack from the try handler chain. |
567 void PopTryHandler(); | 572 void PopTryHandler(); |
568 | 573 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 } \ | 895 } \ |
891 masm-> | 896 masm-> |
892 #else | 897 #else |
893 #define ACCESS_MASM(masm) masm-> | 898 #define ACCESS_MASM(masm) masm-> |
894 #endif | 899 #endif |
895 | 900 |
896 | 901 |
897 } } // namespace v8::internal | 902 } } // namespace v8::internal |
898 | 903 |
899 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 904 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |