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

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

Issue 900223002: Revert of Externalize deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/lithium-codegen-ia32.h » ('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 2622 matching lines...) Expand 10 before | Expand all | Expand 10 after
2633 2633
2634 2634
2635 void Assembler::RecordComment(const char* msg, bool force) { 2635 void Assembler::RecordComment(const char* msg, bool force) {
2636 if (FLAG_code_comments || force) { 2636 if (FLAG_code_comments || force) {
2637 EnsureSpace ensure_space(this); 2637 EnsureSpace ensure_space(this);
2638 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 2638 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
2639 } 2639 }
2640 } 2640 }
2641 2641
2642 2642
2643 void Assembler::RecordDeoptReason(const int reason, const int raw_position) {
2644 if (FLAG_trace_deopt) {
2645 EnsureSpace ensure_space(this);
2646 RecordRelocInfo(RelocInfo::POSITION, raw_position);
2647 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason);
2648 }
2649 }
2650
2651
2652 void Assembler::GrowBuffer() { 2643 void Assembler::GrowBuffer() {
2653 DCHECK(buffer_overflow()); 2644 DCHECK(buffer_overflow());
2654 if (!own_buffer_) FATAL("external code buffer is too small"); 2645 if (!own_buffer_) FATAL("external code buffer is too small");
2655 2646
2656 // Compute new buffer size. 2647 // Compute new buffer size.
2657 CodeDesc desc; // the new buffer 2648 CodeDesc desc; // the new buffer
2658 desc.buffer_size = 2 * buffer_size_; 2649 desc.buffer_size = 2 * buffer_size_;
2659 2650
2660 // Some internal data structures overflow for very large buffers, 2651 // Some internal data structures overflow for very large buffers,
2661 // they must ensure that kMaximalBufferSize is not too large. 2652 // they must ensure that kMaximalBufferSize is not too large.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
2820 fprintf(coverage_log, "%s\n", file_line); 2811 fprintf(coverage_log, "%s\n", file_line);
2821 fflush(coverage_log); 2812 fflush(coverage_log);
2822 } 2813 }
2823 } 2814 }
2824 2815
2825 #endif 2816 #endif
2826 2817
2827 } } // namespace v8::internal 2818 } } // namespace v8::internal
2828 2819
2829 #endif // V8_TARGET_ARCH_IA32 2820 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698