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

Side by Side Diff: src/compiler/linkage.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/compiler/js-generic-lowering.cc ('k') | src/compiler/raw-machine-assembler.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/linkage.h" 5 #include "src/compiler/linkage.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // plus the receiver. 45 // plus the receiver.
46 incoming_ = GetJSCallDescriptor(1 + info->function()->parameter_count()); 46 incoming_ = GetJSCallDescriptor(1 + info->function()->parameter_count());
47 } else if (!info->closure().is_null()) { 47 } else if (!info->closure().is_null()) {
48 // If we are compiling a JS function, use a JS call descriptor, 48 // If we are compiling a JS function, use a JS call descriptor,
49 // plus the receiver. 49 // plus the receiver.
50 SharedFunctionInfo* shared = info->closure()->shared(); 50 SharedFunctionInfo* shared = info->closure()->shared();
51 incoming_ = GetJSCallDescriptor(1 + shared->formal_parameter_count()); 51 incoming_ = GetJSCallDescriptor(1 + shared->formal_parameter_count());
52 } else if (info->code_stub() != NULL) { 52 } else if (info->code_stub() != NULL) {
53 // Use the code stub interface descriptor. 53 // Use the code stub interface descriptor.
54 HydrogenCodeStub* stub = info->code_stub(); 54 HydrogenCodeStub* stub = info->code_stub();
55 CodeStubInterfaceDescriptor descriptor; 55 CodeStubInterfaceDescriptor descriptor(stub);
56 stub->InitializeInterfaceDescriptor(&descriptor);
57 incoming_ = GetStubCallDescriptor(&descriptor); 56 incoming_ = GetStubCallDescriptor(&descriptor);
58 } else { 57 } else {
59 incoming_ = NULL; // TODO(titzer): ? 58 incoming_ = NULL; // TODO(titzer): ?
60 } 59 }
61 } 60 }
62 61
63 62
64 FrameOffset Linkage::GetFrameOffset(int spill_slot, Frame* frame, int extra) { 63 FrameOffset Linkage::GetFrameOffset(int spill_slot, Frame* frame, int extra) {
65 if (frame->GetSpillSlotCount() > 0 || incoming_->IsJSFunctionCall() || 64 if (frame->GetSpillSlotCount() > 0 || incoming_->IsJSFunctionCall() ||
66 incoming_->kind() == CallDescriptor::kCallAddress) { 65 incoming_->kind() == CallDescriptor::kCallAddress) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 156
158 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 157 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
159 MachineSignature* sig) { 158 MachineSignature* sig) {
160 UNIMPLEMENTED(); 159 UNIMPLEMENTED();
161 return NULL; 160 return NULL;
162 } 161 }
163 #endif // !V8_TURBOFAN_BACKEND 162 #endif // !V8_TURBOFAN_BACKEND
164 } 163 }
165 } 164 }
166 } // namespace v8::internal::compiler 165 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/raw-machine-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698