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

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

Issue 70163006: MIPS: Simplify behavior of code stubs that accept a variable number of stack arguments in addition … (Closed) Base URL: https://github.com/v8/v8.git@gbl
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
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | no next file » | 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 2403 matching lines...) Expand 10 before | Expand all | Expand 10 after
2414 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2414 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2415 LParameter* result = new(zone()) LParameter; 2415 LParameter* result = new(zone()) LParameter;
2416 if (instr->kind() == HParameter::STACK_PARAMETER) { 2416 if (instr->kind() == HParameter::STACK_PARAMETER) {
2417 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2417 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2418 return DefineAsSpilled(result, spill_index); 2418 return DefineAsSpilled(result, spill_index);
2419 } else { 2419 } else {
2420 ASSERT(info()->IsStub()); 2420 ASSERT(info()->IsStub());
2421 CodeStubInterfaceDescriptor* descriptor = 2421 CodeStubInterfaceDescriptor* descriptor =
2422 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2422 info()->code_stub()->GetInterfaceDescriptor(info()->isolate());
2423 int index = static_cast<int>(instr->index()); 2423 int index = static_cast<int>(instr->index());
2424 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); 2424 Register reg = descriptor->GetParameterRegister(index);
2425 return DefineFixed(result, reg); 2425 return DefineFixed(result, reg);
2426 } 2426 }
2427 } 2427 }
2428 2428
2429 2429
2430 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2430 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2431 // Use an index that corresponds to the location in the unoptimized frame, 2431 // Use an index that corresponds to the location in the unoptimized frame,
2432 // which the optimized frame will subsume. 2432 // which the optimized frame will subsume.
2433 int env_index = instr->index(); 2433 int env_index = instr->index();
2434 int spill_index = 0; 2434 int spill_index = 0;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2604 2604
2605 2605
2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2606 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2607 LOperand* object = UseRegister(instr->object()); 2607 LOperand* object = UseRegister(instr->object());
2608 LOperand* index = UseRegister(instr->index()); 2608 LOperand* index = UseRegister(instr->index());
2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2609 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2610 } 2610 }
2611 2611
2612 2612
2613 } } // namespace v8::internal 2613 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698