Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: src/ia32/assembler-ia32.cc

Issue 6677076: Merge up to bleeding_edge r7201 to isolates branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: Fix lint. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // Emit a single byte. Must always be inlined. 289 // Emit a single byte. Must always be inlined.
290 #define EMIT(x) \ 290 #define EMIT(x) \
291 *pc_++ = (x) 291 *pc_++ = (x)
292 292
293 293
294 #ifdef GENERATED_CODE_COVERAGE 294 #ifdef GENERATED_CODE_COVERAGE
295 static void InitCoverageLog(); 295 static void InitCoverageLog();
296 #endif 296 #endif
297 297
298 Assembler::Assembler(void* buffer, int buffer_size) 298 Assembler::Assembler(void* buffer, int buffer_size)
299 : positions_recorder_(this) { 299 : positions_recorder_(this),
300 emit_debug_code_(FLAG_debug_code) {
300 Isolate* isolate = Isolate::Current(); 301 Isolate* isolate = Isolate::Current();
301 if (buffer == NULL) { 302 if (buffer == NULL) {
302 // Do our own buffer management. 303 // Do our own buffer management.
303 if (buffer_size <= kMinimalBufferSize) { 304 if (buffer_size <= kMinimalBufferSize) {
304 buffer_size = kMinimalBufferSize; 305 buffer_size = kMinimalBufferSize;
305 306
306 if (isolate->assembler_spare_buffer() != NULL) { 307 if (isolate->assembler_spare_buffer() != NULL) {
307 buffer = isolate->assembler_spare_buffer(); 308 buffer = isolate->assembler_spare_buffer();
308 isolate->set_assembler_spare_buffer(NULL); 309 isolate->set_assembler_spare_buffer(NULL);
309 } 310 }
(...skipping 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after
2756 2757
2757 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) { 2758 void Assembler::RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data) {
2758 ASSERT(rmode != RelocInfo::NONE); 2759 ASSERT(rmode != RelocInfo::NONE);
2759 // Don't record external references unless the heap will be serialized. 2760 // Don't record external references unless the heap will be serialized.
2760 if (rmode == RelocInfo::EXTERNAL_REFERENCE) { 2761 if (rmode == RelocInfo::EXTERNAL_REFERENCE) {
2761 #ifdef DEBUG 2762 #ifdef DEBUG
2762 if (!Serializer::enabled()) { 2763 if (!Serializer::enabled()) {
2763 Serializer::TooLateToEnableNow(); 2764 Serializer::TooLateToEnableNow();
2764 } 2765 }
2765 #endif 2766 #endif
2766 if (!Serializer::enabled() && !FLAG_debug_code) { 2767 if (!Serializer::enabled() && !emit_debug_code()) {
2767 return; 2768 return;
2768 } 2769 }
2769 } 2770 }
2770 RelocInfo rinfo(pc_, rmode, data); 2771 RelocInfo rinfo(pc_, rmode, data);
2771 reloc_info_writer.Write(&rinfo); 2772 reloc_info_writer.Write(&rinfo);
2772 } 2773 }
2773 2774
2774 2775
2775 #ifdef GENERATED_CODE_COVERAGE 2776 #ifdef GENERATED_CODE_COVERAGE
2776 static FILE* coverage_log = NULL; 2777 static FILE* coverage_log = NULL;
(...skipping 16 matching lines...) Expand all
2793 fprintf(coverage_log, "%s\n", file_line); 2794 fprintf(coverage_log, "%s\n", file_line);
2794 fflush(coverage_log); 2795 fflush(coverage_log);
2795 } 2796 }
2796 } 2797 }
2797 2798
2798 #endif 2799 #endif
2799 2800
2800 } } // namespace v8::internal 2801 } } // namespace v8::internal
2801 2802
2802 #endif // V8_TARGET_ARCH_IA32 2803 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698