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

Side by Side Diff: src/arm/lithium-arm.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/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('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 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 LOperand* obj = UseFixed(instr->object(), r1); 2273 LOperand* obj = UseFixed(instr->object(), r1);
2274 LOperand* val = UseFixed(instr->value(), r0); 2274 LOperand* val = UseFixed(instr->value(), r0);
2275 2275
2276 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); 2276 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val);
2277 return MarkAsCall(result, instr); 2277 return MarkAsCall(result, instr);
2278 } 2278 }
2279 2279
2280 2280
2281 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2281 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2282 LOperand* context = UseFixed(instr->context(), cp); 2282 LOperand* context = UseFixed(instr->context(), cp);
2283 LOperand* left = FLAG_new_string_add 2283 LOperand* left = UseFixed(instr->left(), r1);
2284 ? UseFixed(instr->left(), r1) 2284 LOperand* right = UseFixed(instr->right(), r0);
2285 : UseRegisterAtStart(instr->left());
2286 LOperand* right = FLAG_new_string_add
2287 ? UseFixed(instr->right(), r0)
2288 : UseRegisterAtStart(instr->right());
2289 return MarkAsCall( 2285 return MarkAsCall(
2290 DefineFixed(new(zone()) LStringAdd(context, left, right), r0), 2286 DefineFixed(new(zone()) LStringAdd(context, left, right), r0),
2291 instr); 2287 instr);
2292 } 2288 }
2293 2289
2294 2290
2295 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 2291 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
2296 LOperand* string = UseTempRegister(instr->string()); 2292 LOperand* string = UseTempRegister(instr->string());
2297 LOperand* index = UseTempRegister(instr->index()); 2293 LOperand* index = UseTempRegister(instr->index());
2298 LOperand* context = UseAny(instr->context()); 2294 LOperand* context = UseAny(instr->context());
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
2533 } 2529 }
2534 2530
2535 2531
2536 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2532 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2537 LOperand* object = UseRegister(instr->object()); 2533 LOperand* object = UseRegister(instr->object());
2538 LOperand* index = UseRegister(instr->index()); 2534 LOperand* index = UseRegister(instr->index());
2539 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2535 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2540 } 2536 }
2541 2537
2542 } } // namespace v8::internal 2538 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698