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

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

Issue 563133002: X87: Initialize CodeStubInterfaceDescriptor in the constructor. (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 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2483 } 2483 }
2484 2484
2485 2485
2486 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2486 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2487 LParameter* result = new(zone()) LParameter; 2487 LParameter* result = new(zone()) LParameter;
2488 if (instr->kind() == HParameter::STACK_PARAMETER) { 2488 if (instr->kind() == HParameter::STACK_PARAMETER) {
2489 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2489 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2490 return DefineAsSpilled(result, spill_index); 2490 return DefineAsSpilled(result, spill_index);
2491 } else { 2491 } else {
2492 DCHECK(info()->IsStub()); 2492 DCHECK(info()->IsStub());
2493 CodeStubInterfaceDescriptor descriptor; 2493 CodeStubInterfaceDescriptor descriptor(info()->code_stub());
2494 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
2495 int index = static_cast<int>(instr->index()); 2494 int index = static_cast<int>(instr->index());
2496 Register reg = descriptor.GetEnvironmentParameterRegister(index); 2495 Register reg = descriptor.GetEnvironmentParameterRegister(index);
2497 return DefineFixed(result, reg); 2496 return DefineFixed(result, reg);
2498 } 2497 }
2499 } 2498 }
2500 2499
2501 2500
2502 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2501 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2503 // Use an index that corresponds to the location in the unoptimized frame, 2502 // Use an index that corresponds to the location in the unoptimized frame,
2504 // which the optimized frame will subsume. 2503 // which the optimized frame will subsume.
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 LOperand* function = UseRegisterAtStart(instr->function()); 2689 LOperand* function = UseRegisterAtStart(instr->function());
2691 LAllocateBlockContext* result = 2690 LAllocateBlockContext* result =
2692 new(zone()) LAllocateBlockContext(context, function); 2691 new(zone()) LAllocateBlockContext(context, function);
2693 return MarkAsCall(DefineFixed(result, esi), instr); 2692 return MarkAsCall(DefineFixed(result, esi), instr);
2694 } 2693 }
2695 2694
2696 2695
2697 } } // namespace v8::internal 2696 } } // namespace v8::internal
2698 2697
2699 #endif // V8_TARGET_ARCH_X87 2698 #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