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

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

Issue 560793002: X87: Do not cache CodeStubInterfaceDescriptor on the isolate. (Closed) Base URL: https://github.com/v8/v8.git@bleeding_edge
Patch Set: Created 6 years, 3 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/x87/code-stubs-x87.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after
2470 } 2470 }
2471 2471
2472 2472
2473 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2473 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2474 LParameter* result = new(zone()) LParameter; 2474 LParameter* result = new(zone()) LParameter;
2475 if (instr->kind() == HParameter::STACK_PARAMETER) { 2475 if (instr->kind() == HParameter::STACK_PARAMETER) {
2476 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2476 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2477 return DefineAsSpilled(result, spill_index); 2477 return DefineAsSpilled(result, spill_index);
2478 } else { 2478 } else {
2479 DCHECK(info()->IsStub()); 2479 DCHECK(info()->IsStub());
2480 CodeStubInterfaceDescriptor* descriptor = 2480 CodeStubInterfaceDescriptor descriptor;
2481 info()->code_stub()->GetInterfaceDescriptor(); 2481 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
2482 int index = static_cast<int>(instr->index()); 2482 int index = static_cast<int>(instr->index());
2483 Register reg = descriptor->GetEnvironmentParameterRegister(index); 2483 Register reg = descriptor.GetEnvironmentParameterRegister(index);
2484 return DefineFixed(result, reg); 2484 return DefineFixed(result, reg);
2485 } 2485 }
2486 } 2486 }
2487 2487
2488 2488
2489 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2489 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2490 // Use an index that corresponds to the location in the unoptimized frame, 2490 // Use an index that corresponds to the location in the unoptimized frame,
2491 // which the optimized frame will subsume. 2491 // which the optimized frame will subsume.
2492 int env_index = instr->index(); 2492 int env_index = instr->index();
2493 int spill_index = 0; 2493 int spill_index = 0;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
2677 LOperand* function = UseRegisterAtStart(instr->function()); 2677 LOperand* function = UseRegisterAtStart(instr->function());
2678 LAllocateBlockContext* result = 2678 LAllocateBlockContext* result =
2679 new(zone()) LAllocateBlockContext(context, function); 2679 new(zone()) LAllocateBlockContext(context, function);
2680 return MarkAsCall(DefineFixed(result, esi), instr); 2680 return MarkAsCall(DefineFixed(result, esi), instr);
2681 } 2681 }
2682 2682
2683 2683
2684 } } // namespace v8::internal 2684 } } // namespace v8::internal
2685 2685
2686 #endif // V8_TARGET_ARCH_X87 2686 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698