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

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

Issue 22213002: Replace LoadNamedFieldPolymorphic with explicit branches. (Closed) Base URL: https://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/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 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after
2126 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; 2126 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
2127 } 2127 }
2128 2128
2129 2129
2130 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 2130 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
2131 LOperand* obj = UseRegisterAtStart(instr->object()); 2131 LOperand* obj = UseRegisterAtStart(instr->object());
2132 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 2132 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2133 } 2133 }
2134 2134
2135 2135
2136 LInstruction* LChunkBuilder::DoLoadNamedFieldPolymorphic(
2137 HLoadNamedFieldPolymorphic* instr) {
2138 ASSERT(instr->representation().IsTagged());
2139 if (instr->need_generic()) {
2140 LOperand* obj = UseFixed(instr->object(), r0);
2141 LLoadNamedFieldPolymorphic* result =
2142 new(zone()) LLoadNamedFieldPolymorphic(obj);
2143 return MarkAsCall(DefineFixed(result, r0), instr);
2144 } else {
2145 LOperand* obj = UseRegisterAtStart(instr->object());
2146 LLoadNamedFieldPolymorphic* result =
2147 new(zone()) LLoadNamedFieldPolymorphic(obj);
2148 return AssignEnvironment(DefineAsRegister(result));
2149 }
2150 }
2151
2152
2153 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 2136 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
2154 LOperand* object = UseFixed(instr->object(), r0); 2137 LOperand* object = UseFixed(instr->object(), r0);
2155 LInstruction* result = DefineFixed(new(zone()) LLoadNamedGeneric(object), r0); 2138 LInstruction* result = DefineFixed(new(zone()) LLoadNamedGeneric(object), r0);
2156 return MarkAsCall(result, instr); 2139 return MarkAsCall(result, instr);
2157 } 2140 }
2158 2141
2159 2142
2160 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2143 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2161 HLoadFunctionPrototype* instr) { 2144 HLoadFunctionPrototype* instr) {
2162 return AssignEnvironment(DefineAsRegister( 2145 return AssignEnvironment(DefineAsRegister(
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
2590 2573
2591 2574
2592 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2575 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2593 LOperand* object = UseRegister(instr->object()); 2576 LOperand* object = UseRegister(instr->object());
2594 LOperand* index = UseRegister(instr->index()); 2577 LOperand* index = UseRegister(instr->index());
2595 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2578 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2596 } 2579 }
2597 2580
2598 2581
2599 } } // namespace v8::internal 2582 } } // 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