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

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

Issue 6248004: ARM: Implement DoInstanceOfKnownGlobal stub (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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/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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 bool needs_environment = 667 bool needs_environment =
668 (can_deoptimize == CAN_DEOPTIMIZE_EAGERLY) || !hinstr->HasSideEffects(); 668 (can_deoptimize == CAN_DEOPTIMIZE_EAGERLY) || !hinstr->HasSideEffects();
669 if (needs_environment && !instr->HasEnvironment()) { 669 if (needs_environment && !instr->HasEnvironment()) {
670 instr = AssignEnvironment(instr); 670 instr = AssignEnvironment(instr);
671 } 671 }
672 672
673 return instr; 673 return instr;
674 } 674 }
675 675
676 676
677 LInstruction* LChunkBuilder::MarkAsSaveDoubles(LInstruction* instr) {
678 allocator_->MarkAsSaveDoubles();
679 return instr;
680 }
681
682
677 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) { 683 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) {
678 ASSERT(!instr->HasPointerMap()); 684 ASSERT(!instr->HasPointerMap());
679 instr->set_pointer_map(new LPointerMap(position_)); 685 instr->set_pointer_map(new LPointerMap(position_));
680 return instr; 686 return instr;
681 } 687 }
682 688
683 689
684 LInstruction* LChunkBuilder::Define(LInstruction* instr, LUnallocated* result) { 690 LInstruction* LChunkBuilder::Define(LInstruction* instr, LUnallocated* result) {
685 allocator_->RecordDefinition(current_instruction_, result); 691 allocator_->RecordDefinition(current_instruction_, result);
686 instr->set_result(result); 692 instr->set_result(result);
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 LInstruction* result = 1082 LInstruction* result =
1077 new LInstanceOf(UseFixed(instr->left(), r0), 1083 new LInstanceOf(UseFixed(instr->left(), r0),
1078 UseFixed(instr->right(), r1)); 1084 UseFixed(instr->right(), r1));
1079 return MarkAsCall(DefineFixed(result, r0), instr); 1085 return MarkAsCall(DefineFixed(result, r0), instr);
1080 } 1086 }
1081 1087
1082 1088
1083 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( 1089 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal(
1084 HInstanceOfKnownGlobal* instr) { 1090 HInstanceOfKnownGlobal* instr) {
1085 LInstruction* result = 1091 LInstruction* result =
1086 new LInstanceOfKnownGlobal(UseFixed(instr->value(), r0)); 1092 new LInstanceOfKnownGlobal(UseFixed(instr->value(), r0), FixedTemp(r4));
1087 return MarkAsCall(DefineFixed(result, r0), instr); 1093 MarkAsSaveDoubles(result);
1094 return AssignEnvironment(AssignPointerMap(DefineFixed(result, r0)));
1088 } 1095 }
1089 1096
1090 1097
1091 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1098 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1092 LOperand* function = UseFixed(instr->function(), r1); 1099 LOperand* function = UseFixed(instr->function(), r1);
1093 LOperand* receiver = UseFixed(instr->receiver(), r0); 1100 LOperand* receiver = UseFixed(instr->receiver(), r0);
1094 LOperand* length = UseRegisterAtStart(instr->length()); 1101 LOperand* length = UseRegisterAtStart(instr->length());
1095 LOperand* elements = UseRegisterAtStart(instr->elements()); 1102 LOperand* elements = UseRegisterAtStart(instr->elements());
1096 LInstruction* result = new LApplyArguments(function, 1103 LInstruction* result = new LApplyArguments(function,
1097 receiver, 1104 receiver,
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 1855
1849 1856
1850 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1857 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1851 HEnvironment* outer = current_block_->last_environment()->outer(); 1858 HEnvironment* outer = current_block_->last_environment()->outer();
1852 current_block_->UpdateEnvironment(outer); 1859 current_block_->UpdateEnvironment(outer);
1853 return NULL; 1860 return NULL;
1854 } 1861 }
1855 1862
1856 1863
1857 } } // namespace v8::internal 1864 } } // 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