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

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

Issue 14639008: Allow more virtual registers to be encoded in LUnallocated. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/lithium-allocator.cc ('k') | src/x64/lithium-x64.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 2310 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2321 info()->code_stub()->GetInterfaceDescriptor(info()->isolate());
2322 int index = static_cast<int>(instr->index()); 2322 int index = static_cast<int>(instr->index());
2323 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); 2323 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index);
2324 return DefineFixed(result, reg); 2324 return DefineFixed(result, reg);
2325 } 2325 }
2326 } 2326 }
2327 2327
2328 2328
2329 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2329 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2330 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width. 2330 int spill_index = chunk()->GetNextSpillIndex(false); // Not double-width.
2331 if (spill_index > LUnallocated::kMaxFixedIndex) { 2331 if (spill_index > LUnallocated::kMaxFixedSlotIndex) {
2332 Abort("Too many spill slots needed for OSR"); 2332 Abort("Too many spill slots needed for OSR");
2333 spill_index = 0; 2333 spill_index = 0;
2334 } 2334 }
2335 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index); 2335 return DefineAsSpilled(new(zone()) LUnknownOSRValue, spill_index);
2336 } 2336 }
2337 2337
2338 2338
2339 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { 2339 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) {
2340 argument_count_ -= instr->argument_count(); 2340 argument_count_ -= instr->argument_count();
2341 return MarkAsCall(DefineFixed(new(zone()) LCallStub, v0), instr); 2341 return MarkAsCall(DefineFixed(new(zone()) LCallStub, v0), instr);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 2502
2503 2503
2504 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2504 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2505 LOperand* object = UseRegister(instr->object()); 2505 LOperand* object = UseRegister(instr->object());
2506 LOperand* index = UseRegister(instr->index()); 2506 LOperand* index = UseRegister(instr->index());
2507 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2507 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2508 } 2508 }
2509 2509
2510 2510
2511 } } // namespace v8::internal 2511 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698