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

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

Issue 70203002: Simplify Hydrogen code stubs with variable argument count (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed smi-ification of variable arg count 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 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after
2542 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2542 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2543 LParameter* result = new(zone()) LParameter; 2543 LParameter* result = new(zone()) LParameter;
2544 if (instr->kind() == HParameter::STACK_PARAMETER) { 2544 if (instr->kind() == HParameter::STACK_PARAMETER) {
2545 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2545 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2546 return DefineAsSpilled(result, spill_index); 2546 return DefineAsSpilled(result, spill_index);
2547 } else { 2547 } else {
2548 ASSERT(info()->IsStub()); 2548 ASSERT(info()->IsStub());
2549 CodeStubInterfaceDescriptor* descriptor = 2549 CodeStubInterfaceDescriptor* descriptor =
2550 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2550 info()->code_stub()->GetInterfaceDescriptor(info()->isolate());
2551 int index = static_cast<int>(instr->index()); 2551 int index = static_cast<int>(instr->index());
2552 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); 2552 Register reg = descriptor->GetParameterRegister(index);
2553 return DefineFixed(result, reg); 2553 return DefineFixed(result, reg);
2554 } 2554 }
2555 } 2555 }
2556 2556
2557 2557
2558 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2558 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2559 // Use an index that corresponds to the location in the unoptimized frame, 2559 // Use an index that corresponds to the location in the unoptimized frame,
2560 // which the optimized frame will subsume. 2560 // which the optimized frame will subsume.
2561 int env_index = instr->index(); 2561 int env_index = instr->index();
2562 int spill_index = 0; 2562 int spill_index = 0;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2743 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2743 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2744 LOperand* object = UseRegister(instr->object()); 2744 LOperand* object = UseRegister(instr->object());
2745 LOperand* index = UseTempRegister(instr->index()); 2745 LOperand* index = UseTempRegister(instr->index());
2746 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2746 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2747 } 2747 }
2748 2748
2749 2749
2750 } } // namespace v8::internal 2750 } } // namespace v8::internal
2751 2751
2752 #endif // V8_TARGET_ARCH_IA32 2752 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/deoptimizer.cc ('K') | « src/ia32/deoptimizer-ia32.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698