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/ia32/lithium-ia32.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 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 LOperand* value = UseFixed(instr->value(), eax); 2479 LOperand* value = UseFixed(instr->value(), eax);
2480 2480
2481 LStoreNamedGeneric* result = 2481 LStoreNamedGeneric* result =
2482 new(zone()) LStoreNamedGeneric(context, object, value); 2482 new(zone()) LStoreNamedGeneric(context, object, value);
2483 return MarkAsCall(result, instr); 2483 return MarkAsCall(result, instr);
2484 } 2484 }
2485 2485
2486 2486
2487 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2487 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2488 LOperand* context = UseFixed(instr->context(), esi); 2488 LOperand* context = UseFixed(instr->context(), esi);
2489 LOperand* left = UseOrConstantAtStart(instr->left()); 2489 LOperand* left = FLAG_new_string_add
2490 LOperand* right = UseOrConstantAtStart(instr->right()); 2490 ? UseFixed(instr->left(), edx)
2491 : UseOrConstantAtStart(instr->left());
2492 LOperand* right = FLAG_new_string_add
2493 ? UseFixed(instr->right(), eax)
2494 : UseOrConstantAtStart(instr->right());
2491 LStringAdd* string_add = new(zone()) LStringAdd(context, left, right); 2495 LStringAdd* string_add = new(zone()) LStringAdd(context, left, right);
2492 return MarkAsCall(DefineFixed(string_add, eax), instr); 2496 return MarkAsCall(DefineFixed(string_add, eax), instr);
2493 } 2497 }
2494 2498
2495 2499
2496 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 2500 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
2497 LOperand* string = UseTempRegister(instr->string()); 2501 LOperand* string = UseTempRegister(instr->string());
2498 LOperand* index = UseTempRegister(instr->index()); 2502 LOperand* index = UseTempRegister(instr->index());
2499 LOperand* context = UseAny(instr->context()); 2503 LOperand* context = UseAny(instr->context());
2500 LStringCharCodeAt* result = 2504 LStringCharCodeAt* result =
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2754 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2751 LOperand* object = UseRegister(instr->object()); 2755 LOperand* object = UseRegister(instr->object());
2752 LOperand* index = UseTempRegister(instr->index()); 2756 LOperand* index = UseTempRegister(instr->index());
2753 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2757 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2754 } 2758 }
2755 2759
2756 2760
2757 } } // namespace v8::internal 2761 } } // namespace v8::internal
2758 2762
2759 #endif // V8_TARGET_ARCH_IA32 2763 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698