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

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

Issue 544123002: Do not cache CodeStubInterfaceDescriptor on the isolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/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 | 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 // 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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/ia32/lithium-codegen-ia32.h" 10 #include "src/ia32/lithium-codegen-ia32.h"
(...skipping 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2494 } 2494 }
2495 2495
2496 2496
2497 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2497 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2498 LParameter* result = new(zone()) LParameter; 2498 LParameter* result = new(zone()) LParameter;
2499 if (instr->kind() == HParameter::STACK_PARAMETER) { 2499 if (instr->kind() == HParameter::STACK_PARAMETER) {
2500 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2500 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2501 return DefineAsSpilled(result, spill_index); 2501 return DefineAsSpilled(result, spill_index);
2502 } else { 2502 } else {
2503 DCHECK(info()->IsStub()); 2503 DCHECK(info()->IsStub());
2504 CodeStubInterfaceDescriptor* descriptor = 2504 CodeStubInterfaceDescriptor descriptor;
mvstanton 2014/09/05 13:38:44 It will be great when you allow writing: CodeStub
2505 info()->code_stub()->GetInterfaceDescriptor(); 2505 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
2506 int index = static_cast<int>(instr->index()); 2506 int index = static_cast<int>(instr->index());
2507 Register reg = descriptor->GetEnvironmentParameterRegister(index); 2507 Register reg = descriptor.GetEnvironmentParameterRegister(index);
2508 return DefineFixed(result, reg); 2508 return DefineFixed(result, reg);
2509 } 2509 }
2510 } 2510 }
2511 2511
2512 2512
2513 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2513 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2514 // Use an index that corresponds to the location in the unoptimized frame, 2514 // Use an index that corresponds to the location in the unoptimized frame,
2515 // which the optimized frame will subsume. 2515 // which the optimized frame will subsume.
2516 int env_index = instr->index(); 2516 int env_index = instr->index();
2517 int spill_index = 0; 2517 int spill_index = 0;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
2701 LOperand* function = UseRegisterAtStart(instr->function()); 2701 LOperand* function = UseRegisterAtStart(instr->function());
2702 LAllocateBlockContext* result = 2702 LAllocateBlockContext* result =
2703 new(zone()) LAllocateBlockContext(context, function); 2703 new(zone()) LAllocateBlockContext(context, function);
2704 return MarkAsCall(DefineFixed(result, esi), instr); 2704 return MarkAsCall(DefineFixed(result, esi), instr);
2705 } 2705 }
2706 2706
2707 2707
2708 } } // namespace v8::internal 2708 } } // namespace v8::internal
2709 2709
2710 #endif // V8_TARGET_ARCH_IA32 2710 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/code-stubs.cc ('K') | « src/ia32/code-stubs-ia32.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698