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

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

Issue 61893009: Add initial hydrogenized NewStringAddStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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
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 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 LOperand* obj = UseFixed(instr->object(), r1); 2404 LOperand* obj = UseFixed(instr->object(), r1);
2405 LOperand* val = UseFixed(instr->value(), r0); 2405 LOperand* val = UseFixed(instr->value(), r0);
2406 2406
2407 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val); 2407 LInstruction* result = new(zone()) LStoreNamedGeneric(context, obj, val);
2408 return MarkAsCall(result, instr); 2408 return MarkAsCall(result, instr);
2409 } 2409 }
2410 2410
2411 2411
2412 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2412 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2413 LOperand* context = UseFixed(instr->context(), cp); 2413 LOperand* context = UseFixed(instr->context(), cp);
2414 LOperand* left = UseRegisterAtStart(instr->left()); 2414 LOperand* left = FLAG_new_string_add
2415 LOperand* right = UseRegisterAtStart(instr->right()); 2415 ? UseFixed(instr->left(), r1)
2416 : UseRegisterAtStart(instr->left());
2417 LOperand* right = FLAG_new_string_add
2418 ? UseFixed(instr->right(), r0)
2419 : UseRegisterAtStart(instr->right());
2416 return MarkAsCall( 2420 return MarkAsCall(
2417 DefineFixed(new(zone()) LStringAdd(context, left, right), r0), 2421 DefineFixed(new(zone()) LStringAdd(context, left, right), r0),
2418 instr); 2422 instr);
2419 } 2423 }
2420 2424
2421 2425
2422 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 2426 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
2423 LOperand* string = UseTempRegister(instr->string()); 2427 LOperand* string = UseTempRegister(instr->string());
2424 LOperand* index = UseTempRegister(instr->index()); 2428 LOperand* index = UseTempRegister(instr->index());
2425 LOperand* context = UseAny(instr->context()); 2429 LOperand* context = UseAny(instr->context());
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2666 2670
2667 2671
2668 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2672 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2669 LOperand* object = UseRegister(instr->object()); 2673 LOperand* object = UseRegister(instr->object());
2670 LOperand* index = UseRegister(instr->index()); 2674 LOperand* index = UseRegister(instr->index());
2671 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2675 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2672 } 2676 }
2673 2677
2674 2678
2675 } } // namespace v8::internal 2679 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | src/code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698