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

Side by Side Diff: src/x64/lithium-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-x64.h ('k') | no next file » | 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 HBasicBlock* next = NULL; 437 HBasicBlock* next = NULL;
438 if (i < blocks->length() - 1) next = blocks->at(i + 1); 438 if (i < blocks->length() - 1) next = blocks->at(i + 1);
439 DoBasicBlock(blocks->at(i), next); 439 DoBasicBlock(blocks->at(i), next);
440 if (is_aborted()) return NULL; 440 if (is_aborted()) return NULL;
441 } 441 }
442 status_ = DONE; 442 status_ = DONE;
443 return chunk_; 443 return chunk_;
444 } 444 }
445 445
446 446
447 void LChunkBuilder::Abort(const char* format, ...) { 447 void LCodeGen::Abort(const char* reason) {
448 if (FLAG_trace_bailout) { 448 info()->set_bailout_reason(reason);
449 SmartArrayPointer<char> name(
450 info()->shared_info()->DebugName()->ToCString());
451 PrintF("Aborting LPlatformChunk building in @\"%s\": ", *name);
452 va_list arguments;
453 va_start(arguments, format);
454 OS::VPrint(format, arguments);
455 va_end(arguments);
456 PrintF("\n");
457 }
458 status_ = ABORTED; 449 status_ = ABORTED;
459 } 450 }
460 451
461 452
462 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { 453 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) {
463 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, 454 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER,
464 Register::ToAllocationIndex(reg)); 455 Register::ToAllocationIndex(reg));
465 } 456 }
466 457
467 458
(...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2305 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2315 LOperand* object = UseRegister(instr->object()); 2306 LOperand* object = UseRegister(instr->object());
2316 LOperand* index = UseTempRegister(instr->index()); 2307 LOperand* index = UseTempRegister(instr->index());
2317 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2308 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2318 } 2309 }
2319 2310
2320 2311
2321 } } // namespace v8::internal 2312 } } // namespace v8::internal
2322 2313
2323 #endif // V8_TARGET_ARCH_X64 2314 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698