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

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

Issue 251473004: MIPS: CodeStubs contain their corresponding Isolate* now. (part 2) (Closed) Base URL: git@github.com:paul99/v8m-rb.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-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 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 2358
2359 2359
2360 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2360 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2361 LParameter* result = new(zone()) LParameter; 2361 LParameter* result = new(zone()) LParameter;
2362 if (instr->kind() == HParameter::STACK_PARAMETER) { 2362 if (instr->kind() == HParameter::STACK_PARAMETER) {
2363 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2363 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2364 return DefineAsSpilled(result, spill_index); 2364 return DefineAsSpilled(result, spill_index);
2365 } else { 2365 } else {
2366 ASSERT(info()->IsStub()); 2366 ASSERT(info()->IsStub());
2367 CodeStubInterfaceDescriptor* descriptor = 2367 CodeStubInterfaceDescriptor* descriptor =
2368 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2368 info()->code_stub()->GetInterfaceDescriptor();
2369 int index = static_cast<int>(instr->index()); 2369 int index = static_cast<int>(instr->index());
2370 Register reg = descriptor->GetParameterRegister(index); 2370 Register reg = descriptor->GetParameterRegister(index);
2371 return DefineFixed(result, reg); 2371 return DefineFixed(result, reg);
2372 } 2372 }
2373 } 2373 }
2374 2374
2375 2375
2376 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2376 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2377 // Use an index that corresponds to the location in the unoptimized frame, 2377 // Use an index that corresponds to the location in the unoptimized frame,
2378 // which the optimized frame will subsume. 2378 // which the optimized frame will subsume.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
2532 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2532 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2533 LOperand* object = UseRegister(instr->object()); 2533 LOperand* object = UseRegister(instr->object());
2534 LOperand* index = UseRegister(instr->index()); 2534 LOperand* index = UseRegister(instr->index());
2535 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2535 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2536 LInstruction* result = DefineSameAsFirst(load); 2536 LInstruction* result = DefineSameAsFirst(load);
2537 return AssignPointerMap(result); 2537 return AssignPointerMap(result);
2538 } 2538 }
2539 2539
2540 2540
2541 } } // namespace v8::internal 2541 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698