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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // Emit a single byte. Must always be inlined. | 306 // Emit a single byte. Must always be inlined. |
307 #define EMIT(x) \ | 307 #define EMIT(x) \ |
308 *pc_++ = (x) | 308 *pc_++ = (x) |
309 | 309 |
310 | 310 |
311 #ifdef GENERATED_CODE_COVERAGE | 311 #ifdef GENERATED_CODE_COVERAGE |
312 static void InitCoverageLog(); | 312 static void InitCoverageLog(); |
313 #endif | 313 #endif |
314 | 314 |
315 Assembler::Assembler(Isolate* arg_isolate, void* buffer, int buffer_size) | 315 Assembler::Assembler(Isolate* arg_isolate, void* buffer, int buffer_size) |
316 : AssemblerBase(arg_isolate, arg_isolate->zone()), | 316 : AssemblerBase(arg_isolate), |
317 positions_recorder_(this), | 317 positions_recorder_(this), |
318 emit_debug_code_(FLAG_debug_code) { | 318 emit_debug_code_(FLAG_debug_code) { |
319 if (buffer == NULL) { | 319 if (buffer == NULL) { |
320 // Do our own buffer management. | 320 // Do our own buffer management. |
321 if (buffer_size <= kMinimalBufferSize) { | 321 if (buffer_size <= kMinimalBufferSize) { |
322 buffer_size = kMinimalBufferSize; | 322 buffer_size = kMinimalBufferSize; |
323 | 323 |
324 if (isolate()->assembler_spare_buffer() != NULL) { | 324 if (isolate()->assembler_spare_buffer() != NULL) { |
325 buffer = isolate()->assembler_spare_buffer(); | 325 buffer = isolate()->assembler_spare_buffer(); |
326 isolate()->set_assembler_spare_buffer(NULL); | 326 isolate()->set_assembler_spare_buffer(NULL); |
(...skipping 2290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2617 fprintf(coverage_log, "%s\n", file_line); | 2617 fprintf(coverage_log, "%s\n", file_line); |
2618 fflush(coverage_log); | 2618 fflush(coverage_log); |
2619 } | 2619 } |
2620 } | 2620 } |
2621 | 2621 |
2622 #endif | 2622 #endif |
2623 | 2623 |
2624 } } // namespace v8::internal | 2624 } } // namespace v8::internal |
2625 | 2625 |
2626 #endif // V8_TARGET_ARCH_IA32 | 2626 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |