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

Side by Side Diff: src/x64/lithium-x64.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 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after
2422 2422
2423 2423
2424 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2424 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2425 LParameter* result = new(zone()) LParameter; 2425 LParameter* result = new(zone()) LParameter;
2426 if (instr->kind() == HParameter::STACK_PARAMETER) { 2426 if (instr->kind() == HParameter::STACK_PARAMETER) {
2427 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2427 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2428 return DefineAsSpilled(result, spill_index); 2428 return DefineAsSpilled(result, spill_index);
2429 } else { 2429 } else {
2430 ASSERT(info()->IsStub()); 2430 ASSERT(info()->IsStub());
2431 CodeStubInterfaceDescriptor* descriptor = 2431 CodeStubInterfaceDescriptor* descriptor =
2432 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); 2432 info()->code_stub()->GetInterfaceDescriptor();
2433 int index = static_cast<int>(instr->index()); 2433 int index = static_cast<int>(instr->index());
2434 Register reg = descriptor->GetParameterRegister(index); 2434 Register reg = descriptor->GetParameterRegister(index);
2435 return DefineFixed(result, reg); 2435 return DefineFixed(result, reg);
2436 } 2436 }
2437 } 2437 }
2438 2438
2439 2439
2440 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2440 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2441 // Use an index that corresponds to the location in the unoptimized frame, 2441 // Use an index that corresponds to the location in the unoptimized frame,
2442 // which the optimized frame will subsume. 2442 // which the optimized frame will subsume.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
2609 LOperand* index = UseTempRegister(instr->index()); 2609 LOperand* index = UseTempRegister(instr->index());
2610 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2610 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2611 LInstruction* result = DefineSameAsFirst(load); 2611 LInstruction* result = DefineSameAsFirst(load);
2612 return AssignPointerMap(result); 2612 return AssignPointerMap(result);
2613 } 2613 }
2614 2614
2615 2615
2616 } } // namespace v8::internal 2616 } } // namespace v8::internal
2617 2617
2618 #endif // V8_TARGET_ARCH_X64 2618 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698