| 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 | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // Add a label for checking the size of the code used for returning. | 176 // Add a label for checking the size of the code used for returning. |
| 177 #ifdef DEBUG | 177 #ifdef DEBUG |
| 178 Label check_codesize; | 178 Label check_codesize; |
| 179 patcher.masm()->bind(&check_codesize); | 179 patcher.masm()->bind(&check_codesize); |
| 180 #endif | 180 #endif |
| 181 | 181 |
| 182 // Patch the code. | 182 // Patch the code. |
| 183 patcher.masm()->call(target, RelocInfo::NONE); | 183 patcher.masm()->call(target, RelocInfo::NONE); |
| 184 | 184 |
| 185 // Check that the size of the code generated is as expected. | 185 // Check that the size of the code generated is as expected. |
| 186 ASSERT_EQ(kCallCodeSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codes
ize)); | 186 ASSERT_EQ(kCallCodeSize, |
| 187 patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); |
| 187 | 188 |
| 188 // Add the requested number of int3 instructions after the call. | 189 // Add the requested number of int3 instructions after the call. |
| 189 for (int i = 0; i < guard_bytes; i++) { | 190 for (int i = 0; i < guard_bytes; i++) { |
| 190 patcher.masm()->int3(); | 191 patcher.masm()->int3(); |
| 191 } | 192 } |
| 192 } | 193 } |
| 193 | 194 |
| 194 | 195 |
| 195 // ----------------------------------------------------------------------------- | 196 // ----------------------------------------------------------------------------- |
| 196 // Implementation of Operand | 197 // Implementation of Operand |
| (...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2244 push_insn[1] = 13; // Skip over coverage insns. | 2245 push_insn[1] = 13; // Skip over coverage insns. |
| 2245 if (coverage_log != NULL) { | 2246 if (coverage_log != NULL) { |
| 2246 fprintf(coverage_log, "%s\n", file_line); | 2247 fprintf(coverage_log, "%s\n", file_line); |
| 2247 fflush(coverage_log); | 2248 fflush(coverage_log); |
| 2248 } | 2249 } |
| 2249 } | 2250 } |
| 2250 | 2251 |
| 2251 #endif | 2252 #endif |
| 2252 | 2253 |
| 2253 } } // namespace v8::internal | 2254 } } // namespace v8::internal |
| OLD | NEW |