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

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

Issue 22255005: MIPS: 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/mips/lithium-mips.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 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result; 2060 return instr->RequiresHoleCheck() ? AssignEnvironment(result) : result;
2061 } 2061 }
2062 2062
2063 2063
2064 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 2064 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
2065 LOperand* obj = UseRegisterAtStart(instr->object()); 2065 LOperand* obj = UseRegisterAtStart(instr->object());
2066 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 2066 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2067 } 2067 }
2068 2068
2069 2069
2070 LInstruction* LChunkBuilder::DoLoadNamedFieldPolymorphic(
2071 HLoadNamedFieldPolymorphic* instr) {
2072 ASSERT(instr->representation().IsTagged());
2073 if (instr->need_generic()) {
2074 LOperand* obj = UseFixed(instr->object(), a0);
2075 LLoadNamedFieldPolymorphic* result =
2076 new(zone()) LLoadNamedFieldPolymorphic(obj);
2077 return MarkAsCall(DefineFixed(result, v0), instr);
2078 } else {
2079 LOperand* obj = UseRegisterAtStart(instr->object());
2080 LLoadNamedFieldPolymorphic* result =
2081 new(zone()) LLoadNamedFieldPolymorphic(obj);
2082 return AssignEnvironment(DefineAsRegister(result));
2083 }
2084 }
2085
2086
2087 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { 2070 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
2088 LOperand* object = UseFixed(instr->object(), a0); 2071 LOperand* object = UseFixed(instr->object(), a0);
2089 LInstruction* result = DefineFixed(new(zone()) LLoadNamedGeneric(object), v0); 2072 LInstruction* result = DefineFixed(new(zone()) LLoadNamedGeneric(object), v0);
2090 return MarkAsCall(result, instr); 2073 return MarkAsCall(result, instr);
2091 } 2074 }
2092 2075
2093 2076
2094 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2077 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2095 HLoadFunctionPrototype* instr) { 2078 HLoadFunctionPrototype* instr) {
2096 return AssignEnvironment(DefineAsRegister( 2079 return AssignEnvironment(DefineAsRegister(
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 2514
2532 2515
2533 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2516 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2534 LOperand* object = UseRegister(instr->object()); 2517 LOperand* object = UseRegister(instr->object());
2535 LOperand* index = UseRegister(instr->index()); 2518 LOperand* index = UseRegister(instr->index());
2536 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2519 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2537 } 2520 }
2538 2521
2539 2522
2540 } } // namespace v8::internal 2523 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698