OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 // Prefetch src position into cache level. | 983 // Prefetch src position into cache level. |
984 // Level 1, 2 or 3 specifies CPU cache level. Level 0 specifies a | 984 // Level 1, 2 or 3 specifies CPU cache level. Level 0 specifies a |
985 // non-temporal | 985 // non-temporal |
986 void prefetch(const Operand& src, int level); | 986 void prefetch(const Operand& src, int level); |
987 // TODO(lrn): Need SFENCE for movnt? | 987 // TODO(lrn): Need SFENCE for movnt? |
988 | 988 |
989 // Debugging | 989 // Debugging |
990 void Print(); | 990 void Print(); |
991 | 991 |
992 // Check the code size generated from label to here. | 992 // Check the code size generated from label to here. |
993 int SizeOfCodeGeneratedSince(Label* l) { return pc_offset() - l->pos(); } | 993 int SizeOfCodeGeneratedSince(Label* label) { |
| 994 return pc_offset() - label->pos(); |
| 995 } |
994 | 996 |
995 // Mark address of the ExitJSFrame code. | 997 // Mark address of the ExitJSFrame code. |
996 void RecordJSReturn(); | 998 void RecordJSReturn(); |
997 | 999 |
998 // Mark address of a debug break slot. | 1000 // Mark address of a debug break slot. |
999 void RecordDebugBreakSlot(); | 1001 void RecordDebugBreakSlot(); |
1000 | 1002 |
1001 // Record a comment relocation entry that can be used by a disassembler. | 1003 // Record a comment relocation entry that can be used by a disassembler. |
1002 // Use --code-comments to enable, or provide "force = true" flag to always | 1004 // Use --code-comments to enable, or provide "force = true" flag to always |
1003 // write a comment. | 1005 // write a comment. |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 private: | 1138 private: |
1137 Assembler* assembler_; | 1139 Assembler* assembler_; |
1138 #ifdef DEBUG | 1140 #ifdef DEBUG |
1139 int space_before_; | 1141 int space_before_; |
1140 #endif | 1142 #endif |
1141 }; | 1143 }; |
1142 | 1144 |
1143 } } // namespace v8::internal | 1145 } } // namespace v8::internal |
1144 | 1146 |
1145 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1147 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |