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

Side by Side Diff: src/mips/lithium-mips.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/mips/lithium-mips.h ('k') | src/objects.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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 HBasicBlock* next = NULL; 434 HBasicBlock* next = NULL;
435 if (i < blocks->length() - 1) next = blocks->at(i + 1); 435 if (i < blocks->length() - 1) next = blocks->at(i + 1);
436 DoBasicBlock(blocks->at(i), next); 436 DoBasicBlock(blocks->at(i), next);
437 if (is_aborted()) return NULL; 437 if (is_aborted()) return NULL;
438 } 438 }
439 status_ = DONE; 439 status_ = DONE;
440 return chunk_; 440 return chunk_;
441 } 441 }
442 442
443 443
444 void LChunkBuilder::Abort(const char* format, ...) { 444 void LCodeGen::Abort(const char* reason) {
445 if (FLAG_trace_bailout) { 445 info()->set_bailout_reason(reason);
446 SmartArrayPointer<char> name(
447 info()->shared_info()->DebugName()->ToCString());
448 PrintF("Aborting LPlatformChunk building in @\"%s\": ", *name);
449 va_list arguments;
450 va_start(arguments, format);
451 OS::VPrint(format, arguments);
452 va_end(arguments);
453 PrintF("\n");
454 }
455 status_ = ABORTED; 446 status_ = ABORTED;
456 } 447 }
457 448
458 449
459 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { 450 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) {
460 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, 451 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER,
461 Register::ToAllocationIndex(reg)); 452 Register::ToAllocationIndex(reg));
462 } 453 }
463 454
464 455
(...skipping 1776 matching lines...) Expand 10 before | Expand all | Expand 10 after
2241 2232
2242 2233
2243 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2234 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2244 LOperand* object = UseRegister(instr->object()); 2235 LOperand* object = UseRegister(instr->object());
2245 LOperand* index = UseRegister(instr->index()); 2236 LOperand* index = UseRegister(instr->index());
2246 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2237 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2247 } 2238 }
2248 2239
2249 2240
2250 } } // namespace v8::internal 2241 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698