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

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

Issue 144023009: Get rid of the unused native code StringAddStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove obsolete StringHelper methods. Created 6 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/mips/lithium-codegen-mips.cc ('k') | src/x64/code-stubs-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 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after
2198 LOperand* obj = UseFixed(instr->object(), a1); 2198 LOperand* obj = UseFixed(instr->object(), a1);
2199 LOperand* val = UseFixed(instr->value(), a0); 2199 LOperand* val = UseFixed(instr->value(), a0);
2200 2200
2201 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); 2201 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val);
2202 return MarkAsCall(result, instr); 2202 return MarkAsCall(result, instr);
2203 } 2203 }
2204 2204
2205 2205
2206 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2206 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2207 LOperand* context = UseFixed(instr->context(), cp); 2207 LOperand* context = UseFixed(instr->context(), cp);
2208 LOperand* left = FLAG_new_string_add 2208 LOperand* left = UseFixed(instr->left(), a1);
2209 ? UseFixed(instr->left(), a1) 2209 LOperand* right = UseFixed(instr->right(), a0);
2210 : UseRegisterAtStart(instr->left());
2211 LOperand* right = FLAG_new_string_add
2212 ? UseFixed(instr->right(), a0)
2213 : UseRegisterAtStart(instr->right());
2214 return MarkAsCall( 2210 return MarkAsCall(
2215 DefineFixed(new(zone()) LStringAdd(context, left, right), v0), 2211 DefineFixed(new(zone()) LStringAdd(context, left, right), v0),
2216 instr); 2212 instr);
2217 } 2213 }
2218 2214
2219 2215
2220 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 2216 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
2221 LOperand* string = UseTempRegister(instr->string()); 2217 LOperand* string = UseTempRegister(instr->string());
2222 LOperand* index = UseTempRegister(instr->index()); 2218 LOperand* index = UseTempRegister(instr->index());
2223 LOperand* context = UseAny(instr->context()); 2219 LOperand* context = UseAny(instr->context());
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
2459 2455
2460 2456
2461 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2457 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2462 LOperand* object = UseRegister(instr->object()); 2458 LOperand* object = UseRegister(instr->object());
2463 LOperand* index = UseRegister(instr->index()); 2459 LOperand* index = UseRegister(instr->index());
2464 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2460 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2465 } 2461 }
2466 2462
2467 2463
2468 } } // namespace v8::internal 2464 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/x64/code-stubs-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698