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

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

Issue 39973003: Merge bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: again Created 7 years, 1 month 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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 if (needs_environment && !instr->HasEnvironment()) { 649 if (needs_environment && !instr->HasEnvironment()) {
650 instr = AssignEnvironment(instr); 650 instr = AssignEnvironment(instr);
651 } 651 }
652 652
653 return instr; 653 return instr;
654 } 654 }
655 655
656 656
657 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) { 657 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) {
658 ASSERT(!instr->HasPointerMap()); 658 ASSERT(!instr->HasPointerMap());
659 instr->set_pointer_map(new(zone()) LPointerMap(position_, zone())); 659 instr->set_pointer_map(new(zone()) LPointerMap(zone()));
660 return instr; 660 return instr;
661 } 661 }
662 662
663 663
664 LUnallocated* LChunkBuilder::TempRegister() { 664 LUnallocated* LChunkBuilder::TempRegister() {
665 LUnallocated* operand = 665 LUnallocated* operand =
666 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER); 666 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER);
667 int vreg = allocator_->GetVirtualRegister(); 667 int vreg = allocator_->GetVirtualRegister();
668 if (!allocator_->AllocationOk()) { 668 if (!allocator_->AllocationOk()) {
669 Abort(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister); 669 Abort(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister);
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed; 907 if (LUnallocated::cast(instr->Output())->HasFixedPolicy()) ++fixed;
908 } 908 }
909 for (TempIterator it(instr); !it.Done(); it.Advance()) { 909 for (TempIterator it(instr); !it.Done(); it.Advance()) {
910 LUnallocated* operand = LUnallocated::cast(it.Current()); 910 LUnallocated* operand = LUnallocated::cast(it.Current());
911 if (operand->HasFixedPolicy()) ++fixed; 911 if (operand->HasFixedPolicy()) ++fixed;
912 } 912 }
913 ASSERT(fixed == 0 || used_at_start == 0); 913 ASSERT(fixed == 0 || used_at_start == 0);
914 } 914 }
915 #endif 915 #endif
916 916
917 instr->set_position(position_);
918 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { 917 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) {
919 instr = AssignPointerMap(instr); 918 instr = AssignPointerMap(instr);
920 } 919 }
921 if (FLAG_stress_environments && !instr->HasEnvironment()) { 920 if (FLAG_stress_environments && !instr->HasEnvironment()) {
922 instr = AssignEnvironment(instr); 921 instr = AssignEnvironment(instr);
923 } 922 }
924 chunk_->AddInstruction(instr, current_block_); 923 chunk_->AddInstruction(instr, current_block_);
925 } 924 }
926 current_instruction_ = old_current; 925 current_instruction_ = old_current;
927 } 926 }
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 Representation to = instr->to(); 1938 Representation to = instr->to();
1940 if (from.IsSmi()) { 1939 if (from.IsSmi()) {
1941 if (to.IsTagged()) { 1940 if (to.IsTagged()) {
1942 LOperand* value = UseRegister(instr->value()); 1941 LOperand* value = UseRegister(instr->value());
1943 return DefineSameAsFirst(new(zone()) LDummyUse(value)); 1942 return DefineSameAsFirst(new(zone()) LDummyUse(value));
1944 } 1943 }
1945 from = Representation::Tagged(); 1944 from = Representation::Tagged();
1946 } 1945 }
1947 if (from.IsTagged()) { 1946 if (from.IsTagged()) {
1948 if (to.IsDouble()) { 1947 if (to.IsDouble()) {
1949 info()->MarkAsDeferredCalling();
1950 LOperand* value = UseRegister(instr->value()); 1948 LOperand* value = UseRegister(instr->value());
1951 LNumberUntagD* res = new(zone()) LNumberUntagD(value); 1949 LNumberUntagD* res = new(zone()) LNumberUntagD(value);
1952 return AssignEnvironment(DefineAsRegister(res)); 1950 return AssignEnvironment(DefineAsRegister(res));
1953 } else if (to.IsSmi()) { 1951 } else if (to.IsSmi()) {
1954 HValue* val = instr->value(); 1952 HValue* val = instr->value();
1955 LOperand* value = UseRegister(val); 1953 LOperand* value = UseRegister(val);
1956 if (val->type().IsSmi()) { 1954 if (val->type().IsSmi()) {
1957 return DefineSameAsFirst(new(zone()) LDummyUse(value)); 1955 return DefineSameAsFirst(new(zone()) LDummyUse(value));
1958 } 1956 }
1959 return AssignEnvironment(DefineSameAsFirst(new(zone()) LCheckSmi(value))); 1957 return AssignEnvironment(DefineSameAsFirst(new(zone()) LCheckSmi(value)));
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
2660 2658
2661 2659
2662 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2660 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2663 LOperand* object = UseRegister(instr->object()); 2661 LOperand* object = UseRegister(instr->object());
2664 LOperand* index = UseRegister(instr->index()); 2662 LOperand* index = UseRegister(instr->index());
2665 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2663 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2666 } 2664 }
2667 2665
2668 2666
2669 } } // namespace v8::internal 2667 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698