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

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

Issue 14847013: Remove obsolete HArrayLiteral instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Ulan Degenbaev. Created 7 years, 7 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 2508 matching lines...) Expand 10 before | Expand all | Expand 10 after
2519 LOperand* context = UseAny(instr->context()); 2519 LOperand* context = UseAny(instr->context());
2520 LOperand* size = instr->size()->IsConstant() 2520 LOperand* size = instr->size()->IsConstant()
2521 ? UseConstant(instr->size()) 2521 ? UseConstant(instr->size())
2522 : UseTempRegister(instr->size()); 2522 : UseTempRegister(instr->size());
2523 LOperand* temp = TempRegister(); 2523 LOperand* temp = TempRegister();
2524 LAllocate* result = new(zone()) LAllocate(context, size, temp); 2524 LAllocate* result = new(zone()) LAllocate(context, size, temp);
2525 return AssignPointerMap(DefineAsRegister(result)); 2525 return AssignPointerMap(DefineAsRegister(result));
2526 } 2526 }
2527 2527
2528 2528
2529 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) {
2530 LOperand* context = UseFixed(instr->context(), esi);
2531 return MarkAsCall(
2532 DefineFixed(new(zone()) LArrayLiteral(context), eax), instr);
2533 }
2534
2535
2536 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { 2529 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2537 LOperand* context = UseFixed(instr->context(), esi); 2530 LOperand* context = UseFixed(instr->context(), esi);
2538 return MarkAsCall( 2531 return MarkAsCall(
2539 DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr); 2532 DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr);
2540 } 2533 }
2541 2534
2542 2535
2543 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { 2536 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) {
2544 LOperand* context = UseFixed(instr->context(), esi); 2537 LOperand* context = UseFixed(instr->context(), esi);
2545 return MarkAsCall( 2538 return MarkAsCall(
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
2769 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2762 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2770 LOperand* object = UseRegister(instr->object()); 2763 LOperand* object = UseRegister(instr->object());
2771 LOperand* index = UseTempRegister(instr->index()); 2764 LOperand* index = UseTempRegister(instr->index());
2772 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2765 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2773 } 2766 }
2774 2767
2775 2768
2776 } } // namespace v8::internal 2769 } } // namespace v8::internal
2777 2770
2778 #endif // V8_TARGET_ARCH_IA32 2771 #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