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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 Register mask_reg); | 917 Register mask_reg); |
918 | 918 |
919 // Helper for throwing exceptions. Compute a handler address and jump to | 919 // Helper for throwing exceptions. Compute a handler address and jump to |
920 // it. See the implementation for register usage. | 920 // it. See the implementation for register usage. |
921 void JumpToHandlerEntry(); | 921 void JumpToHandlerEntry(); |
922 | 922 |
923 // Compute memory operands for safepoint stack slots. | 923 // Compute memory operands for safepoint stack slots. |
924 Operand SafepointRegisterSlot(Register reg); | 924 Operand SafepointRegisterSlot(Register reg); |
925 static int SafepointRegisterStackIndex(int reg_code); | 925 static int SafepointRegisterStackIndex(int reg_code); |
926 | 926 |
927 // Needs access to SafepointRegisterStackIndex for compiled frame | 927 // Needs access to SafepointRegisterStackIndex for optimized frame |
928 // traversal. | 928 // traversal. |
929 friend class CompiledFrame; | 929 friend class OptimizedFrame; |
930 }; | 930 }; |
931 | 931 |
932 | 932 |
933 // The code patcher is used to patch (typically) small parts of code e.g. for | 933 // The code patcher is used to patch (typically) small parts of code e.g. for |
934 // debugging and other types of instrumentation. When using the code patcher | 934 // debugging and other types of instrumentation. When using the code patcher |
935 // the exact number of bytes specified must be emitted. Is not legal to emit | 935 // the exact number of bytes specified must be emitted. Is not legal to emit |
936 // relocation information. If any of these constraints are violated it causes | 936 // relocation information. If any of these constraints are violated it causes |
937 // an assertion. | 937 // an assertion. |
938 class CodePatcher { | 938 class CodePatcher { |
939 public: | 939 public: |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 } \ | 1000 } \ |
1001 masm-> | 1001 masm-> |
1002 #else | 1002 #else |
1003 #define ACCESS_MASM(masm) masm-> | 1003 #define ACCESS_MASM(masm) masm-> |
1004 #endif | 1004 #endif |
1005 | 1005 |
1006 | 1006 |
1007 } } // namespace v8::internal | 1007 } } // namespace v8::internal |
1008 | 1008 |
1009 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1009 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |