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

Side by Side Diff: src/x64/lithium-x64.cc

Issue 21042003: Patch to enhance the source code line information for profiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 4 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; 875 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed;
876 } 876 }
877 for (TempIterator it(instr); !it.Done(); it.Advance()) { 877 for (TempIterator it(instr); !it.Done(); it.Advance()) {
878 LUnallocated* operand = LUnallocated::cast(it.Current()); 878 LUnallocated* operand = LUnallocated::cast(it.Current());
879 if (operand->HasFixedPolicy()) ++fixed; 879 if (operand->HasFixedPolicy()) ++fixed;
880 } 880 }
881 ASSERT(fixed == 0 || used_at_start == 0); 881 ASSERT(fixed == 0 || used_at_start == 0);
882 } 882 }
883 #endif 883 #endif
884 884
885 instr->set_position(position_);
885 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { 886 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) {
886 instr = AssignPointerMap(instr); 887 instr = AssignPointerMap(instr);
887 } 888 }
888 if (FLAG_stress_environments && !instr->HasEnvironment()) { 889 if (FLAG_stress_environments && !instr->HasEnvironment()) {
889 instr = AssignEnvironment(instr); 890 instr = AssignEnvironment(instr);
890 } 891 }
891 instr->set_hydrogen_value(current); 892 instr->set_hydrogen_value(current);
892 chunk_->AddInstruction(instr, current_block_); 893 chunk_->AddInstruction(instr, current_block_);
893 } 894 }
894 current_instruction_ = old_current; 895 current_instruction_ = old_current;
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
2524 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2525 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2525 LOperand* object = UseRegister(instr->object()); 2526 LOperand* object = UseRegister(instr->object());
2526 LOperand* index = UseTempRegister(instr->index()); 2527 LOperand* index = UseTempRegister(instr->index());
2527 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2528 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2528 } 2529 }
2529 2530
2530 2531
2531 } } // namespace v8::internal 2532 } } // namespace v8::internal
2532 2533
2533 #endif // V8_TARGET_ARCH_X64 2534 #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