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

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

Issue 255543003: CodeStubs contain their corresponding Isolate* now. (part 2) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | 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 2396 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 2407
2408 2408
2409 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2409 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2410 LParameter* result = new(zone()) LParameter; 2410 LParameter* result = new(zone()) LParameter;
2411 if (instr->kind() == HParameter::STACK_PARAMETER) { 2411 if (instr->kind() == HParameter::STACK_PARAMETER) {
2412 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2412 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2413 return DefineAsSpilled(result, spill_index); 2413 return DefineAsSpilled(result, spill_index);
2414 } else { 2414 } else {
2415 ASSERT(info()->IsStub()); 2415 ASSERT(info()->IsStub());
2416 CodeStubInterfaceDescriptor* descriptor = 2416 CodeStubInterfaceDescriptor* descriptor =
2417 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2417 info()->code_stub()->GetInterfaceDescriptor();
2418 int index = static_cast<int>(instr->index()); 2418 int index = static_cast<int>(instr->index());
2419 Register reg = descriptor->GetParameterRegister(index); 2419 Register reg = descriptor->GetParameterRegister(index);
2420 return DefineFixed(result, reg); 2420 return DefineFixed(result, reg);
2421 } 2421 }
2422 } 2422 }
2423 2423
2424 2424
2425 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2425 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2426 // Use an index that corresponds to the location in the unoptimized frame, 2426 // Use an index that corresponds to the location in the unoptimized frame,
2427 // which the optimized frame will subsume. 2427 // which the optimized frame will subsume.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2580 2580
2581 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2581 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2582 LOperand* object = UseRegister(instr->object()); 2582 LOperand* object = UseRegister(instr->object());
2583 LOperand* index = UseRegister(instr->index()); 2583 LOperand* index = UseRegister(instr->index());
2584 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2584 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2585 LInstruction* result = DefineSameAsFirst(load); 2585 LInstruction* result = DefineSameAsFirst(load);
2586 return AssignPointerMap(result); 2586 return AssignPointerMap(result);
2587 } 2587 }
2588 2588
2589 } } // namespace v8::internal 2589 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698