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

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

Issue 21499002: Get rid of HStringLength. (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/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.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 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 2507
2508 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { 2508 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
2509 LOperand* char_code = UseRegister(instr->value()); 2509 LOperand* char_code = UseRegister(instr->value());
2510 LOperand* context = UseAny(instr->context()); 2510 LOperand* context = UseAny(instr->context());
2511 LStringCharFromCode* result = 2511 LStringCharFromCode* result =
2512 new(zone()) LStringCharFromCode(context, char_code); 2512 new(zone()) LStringCharFromCode(context, char_code);
2513 return AssignPointerMap(DefineAsRegister(result)); 2513 return AssignPointerMap(DefineAsRegister(result));
2514 } 2514 }
2515 2515
2516 2516
2517 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
2518 LOperand* string = UseRegisterAtStart(instr->value());
2519 return DefineAsRegister(new(zone()) LStringLength(string));
2520 }
2521
2522
2523 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { 2517 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
2524 info()->MarkAsDeferredCalling(); 2518 info()->MarkAsDeferredCalling();
2525 LOperand* context = UseAny(instr->context()); 2519 LOperand* context = UseAny(instr->context());
2526 LOperand* size = instr->size()->IsConstant() 2520 LOperand* size = instr->size()->IsConstant()
2527 ? UseConstant(instr->size()) 2521 ? UseConstant(instr->size())
2528 : UseTempRegister(instr->size()); 2522 : UseTempRegister(instr->size());
2529 LOperand* temp = TempRegister(); 2523 LOperand* temp = TempRegister();
2530 LAllocate* result = new(zone()) LAllocate(context, size, temp); 2524 LAllocate* result = new(zone()) LAllocate(context, size, temp);
2531 return AssignPointerMap(DefineAsRegister(result)); 2525 return AssignPointerMap(DefineAsRegister(result));
2532 } 2526 }
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2751 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2745 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2752 LOperand* object = UseRegister(instr->object()); 2746 LOperand* object = UseRegister(instr->object());
2753 LOperand* index = UseTempRegister(instr->index()); 2747 LOperand* index = UseTempRegister(instr->index());
2754 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2748 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2755 } 2749 }
2756 2750
2757 2751
2758 } } // namespace v8::internal 2752 } } // namespace v8::internal
2759 2753
2760 #endif // V8_TARGET_ARCH_IA32 2754 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698