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

Side by Side Diff: src/x64/lithium-codegen-x64.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/x64/lithium-codegen-x64.h ('k') | src/x64/lithium-x64.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 86
87 void LCodeGen::FinishCode(Handle<Code> code) { 87 void LCodeGen::FinishCode(Handle<Code> code) {
88 ASSERT(is_done()); 88 ASSERT(is_done());
89 code->set_stack_slots(GetStackSlotCount()); 89 code->set_stack_slots(GetStackSlotCount());
90 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 90 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
91 PopulateDeoptimizationData(code); 91 PopulateDeoptimizationData(code);
92 } 92 }
93 93
94 94
95 void LCodeGen::Abort(const char* format, ...) { 95 void LChunkBuilder::Abort(const char* reason) {
96 if (FLAG_trace_bailout) { 96 info()->set_bailout_reason(reason);
97 SmartArrayPointer<char> name(
98 info()->shared_info()->DebugName()->ToCString());
99 PrintF("Aborting LCodeGen in @\"%s\": ", *name);
100 va_list arguments;
101 va_start(arguments, format);
102 OS::VPrint(format, arguments);
103 va_end(arguments);
104 PrintF("\n");
105 }
106 status_ = ABORTED; 97 status_ = ABORTED;
107 } 98 }
108 99
109 100
110 void LCodeGen::Comment(const char* format, ...) { 101 void LCodeGen::Comment(const char* format, ...) {
111 if (!FLAG_code_comments) return; 102 if (!FLAG_code_comments) return;
112 char buffer[4 * KB]; 103 char buffer[4 * KB];
113 StringBuilder builder(buffer, ARRAY_SIZE(buffer)); 104 StringBuilder builder(buffer, ARRAY_SIZE(buffer));
114 va_list arguments; 105 va_list arguments;
115 va_start(arguments, format); 106 va_start(arguments, format);
(...skipping 5152 matching lines...) Expand 10 before | Expand all | Expand 10 after
5268 FixedArray::kHeaderSize - kPointerSize)); 5259 FixedArray::kHeaderSize - kPointerSize));
5269 __ bind(&done); 5260 __ bind(&done);
5270 } 5261 }
5271 5262
5272 5263
5273 #undef __ 5264 #undef __
5274 5265
5275 } } // namespace v8::internal 5266 } } // namespace v8::internal
5276 5267
5277 #endif // V8_TARGET_ARCH_X64 5268 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698