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

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

Issue 553833002: Initialize CodeStubInterfaceDescriptor in the constructor. (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
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/hydrogen-osr.h" 8 #include "src/hydrogen-osr.h"
9 #include "src/lithium-inl.h" 9 #include "src/lithium-inl.h"
10 10
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 } 1981 }
1982 1982
1983 1983
1984 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 1984 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
1985 LParameter* result = new(zone()) LParameter; 1985 LParameter* result = new(zone()) LParameter;
1986 if (instr->kind() == HParameter::STACK_PARAMETER) { 1986 if (instr->kind() == HParameter::STACK_PARAMETER) {
1987 int spill_index = chunk_->GetParameterStackSlot(instr->index()); 1987 int spill_index = chunk_->GetParameterStackSlot(instr->index());
1988 return DefineAsSpilled(result, spill_index); 1988 return DefineAsSpilled(result, spill_index);
1989 } else { 1989 } else {
1990 DCHECK(info()->IsStub()); 1990 DCHECK(info()->IsStub());
1991 CodeStubInterfaceDescriptor descriptor; 1991 CodeStubInterfaceDescriptor descriptor(info()->code_stub());
1992 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor);
1993 int index = static_cast<int>(instr->index()); 1992 int index = static_cast<int>(instr->index());
1994 Register reg = descriptor.GetEnvironmentParameterRegister(index); 1993 Register reg = descriptor.GetEnvironmentParameterRegister(index);
1995 return DefineFixed(result, reg); 1994 return DefineFixed(result, reg);
1996 } 1995 }
1997 } 1996 }
1998 1997
1999 1998
2000 LInstruction* LChunkBuilder::DoPower(HPower* instr) { 1999 LInstruction* LChunkBuilder::DoPower(HPower* instr) {
2001 DCHECK(instr->representation().IsDouble()); 2000 DCHECK(instr->representation().IsDouble());
2002 // We call a C function for double power. It can't trigger a GC. 2001 // We call a C function for double power. It can't trigger a GC.
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
2737 HAllocateBlockContext* instr) { 2736 HAllocateBlockContext* instr) {
2738 LOperand* context = UseFixed(instr->context(), cp); 2737 LOperand* context = UseFixed(instr->context(), cp);
2739 LOperand* function = UseRegisterAtStart(instr->function()); 2738 LOperand* function = UseRegisterAtStart(instr->function());
2740 LAllocateBlockContext* result = 2739 LAllocateBlockContext* result =
2741 new(zone()) LAllocateBlockContext(context, function); 2740 new(zone()) LAllocateBlockContext(context, function);
2742 return MarkAsCall(DefineFixed(result, cp), instr); 2741 return MarkAsCall(DefineFixed(result, cp), instr);
2743 } 2742 }
2744 2743
2745 2744
2746 } } // namespace v8::internal 2745 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698