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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; 931 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed;
932 } 932 }
933 for (TempIterator it(instr); !it.Done(); it.Advance()) { 933 for (TempIterator it(instr); !it.Done(); it.Advance()) {
934 LUnallocated* operand = LUnallocated::cast(it.Current()); 934 LUnallocated* operand = LUnallocated::cast(it.Current());
935 if (operand->HasFixedPolicy()) ++fixed; 935 if (operand->HasFixedPolicy()) ++fixed;
936 } 936 }
937 ASSERT(fixed == 0 || used_at_start == 0); 937 ASSERT(fixed == 0 || used_at_start == 0);
938 } 938 }
939 #endif 939 #endif
940 940
941 instr->set_position(position_);
941 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { 942 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) {
942 instr = AssignPointerMap(instr); 943 instr = AssignPointerMap(instr);
943 } 944 }
944 if (FLAG_stress_environments && !instr->HasEnvironment()) { 945 if (FLAG_stress_environments && !instr->HasEnvironment()) {
945 instr = AssignEnvironment(instr); 946 instr = AssignEnvironment(instr);
946 } 947 }
947 instr->set_hydrogen_value(current); 948 instr->set_hydrogen_value(current);
948 chunk_->AddInstruction(instr, current_block_); 949 chunk_->AddInstruction(instr, current_block_);
949 } 950 }
950 current_instruction_ = old_current; 951 current_instruction_ = old_current;
(...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after
2731 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2732 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2732 LOperand* object = UseRegister(instr->object()); 2733 LOperand* object = UseRegister(instr->object());
2733 LOperand* index = UseTempRegister(instr->index()); 2734 LOperand* index = UseTempRegister(instr->index());
2734 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2735 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2735 } 2736 }
2736 2737
2737 2738
2738 } } // namespace v8::internal 2739 } } // namespace v8::internal
2739 2740
2740 #endif // V8_TARGET_ARCH_IA32 2741 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698