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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 10868106: Print reason for disabling optimization. Kill --trace-bailout flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Created 8 years, 3 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/arm/lithium-codegen-arm.h ('k') | src/compiler.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 85
86 void LCodeGen::FinishCode(Handle<Code> code) { 86 void LCodeGen::FinishCode(Handle<Code> code) {
87 ASSERT(is_done()); 87 ASSERT(is_done());
88 code->set_stack_slots(GetStackSlotCount()); 88 code->set_stack_slots(GetStackSlotCount());
89 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 89 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
90 PopulateDeoptimizationData(code); 90 PopulateDeoptimizationData(code);
91 } 91 }
92 92
93 93
94 void LCodeGen::Abort(const char* format, ...) { 94 void LCodeGen::Abort(const char* reason) {
95 if (FLAG_trace_bailout) { 95 info()->set_bailout_reason(reason);
96 SmartArrayPointer<char> name(
97 info()->shared_info()->DebugName()->ToCString());
98 PrintF("Aborting LCodeGen in @\"%s\": ", *name);
99 va_list arguments;
100 va_start(arguments, format);
101 OS::VPrint(format, arguments);
102 va_end(arguments);
103 PrintF("\n");
104 }
105 status_ = ABORTED; 96 status_ = ABORTED;
106 } 97 }
107 98
108 99
109 void LCodeGen::Comment(const char* format, ...) { 100 void LCodeGen::Comment(const char* format, ...) {
110 if (!FLAG_code_comments) return; 101 if (!FLAG_code_comments) return;
111 char buffer[4 * KB]; 102 char buffer[4 * KB];
112 StringBuilder builder(buffer, ARRAY_SIZE(buffer)); 103 StringBuilder builder(buffer, ARRAY_SIZE(buffer));
113 va_list arguments; 104 va_list arguments;
114 va_start(arguments, format); 105 va_start(arguments, format);
(...skipping 5493 matching lines...) Expand 10 before | Expand all | Expand 10 after
5608 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5599 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5609 __ ldr(result, FieldMemOperand(scratch, 5600 __ ldr(result, FieldMemOperand(scratch,
5610 FixedArray::kHeaderSize - kPointerSize)); 5601 FixedArray::kHeaderSize - kPointerSize));
5611 __ bind(&done); 5602 __ bind(&done);
5612 } 5603 }
5613 5604
5614 5605
5615 #undef __ 5606 #undef __
5616 5607
5617 } } // namespace v8::internal 5608 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.h ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698