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

Side by Side Diff: src/compiler/linkage.cc

Issue 908883002: new classes: implement new.target passing to superclass constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix x64 arithmetic Created 5 years, 10 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/compiler/js-generic-lowering.cc ('k') | src/compiler/pipeline.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/code-stubs.h" 5 #include "src/code-stubs.h"
6 #include "src/compiler.h" 6 #include "src/compiler.h"
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 #include "src/scopes.h" 10 #include "src/scopes.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // plus the receiver. 44 // plus the receiver.
45 return GetJSCallDescriptor(zone, info->is_osr(), 45 return GetJSCallDescriptor(zone, info->is_osr(),
46 1 + info->function()->parameter_count(), 46 1 + info->function()->parameter_count(),
47 CallDescriptor::kNoFlags); 47 CallDescriptor::kNoFlags);
48 } 48 }
49 if (!info->closure().is_null()) { 49 if (!info->closure().is_null()) {
50 // If we are compiling a JS function, use a JS call descriptor, 50 // If we are compiling a JS function, use a JS call descriptor,
51 // plus the receiver. 51 // plus the receiver.
52 SharedFunctionInfo* shared = info->closure()->shared(); 52 SharedFunctionInfo* shared = info->closure()->shared();
53 return GetJSCallDescriptor(zone, info->is_osr(), 53 return GetJSCallDescriptor(zone, info->is_osr(),
54 1 + shared->formal_parameter_count(), 54 1 + shared->internal_formal_parameter_count(),
55 CallDescriptor::kNoFlags); 55 CallDescriptor::kNoFlags);
56 } 56 }
57 if (info->code_stub() != NULL) { 57 if (info->code_stub() != NULL) {
58 // Use the code stub interface descriptor. 58 // Use the code stub interface descriptor.
59 CallInterfaceDescriptor descriptor = 59 CallInterfaceDescriptor descriptor =
60 info->code_stub()->GetCallInterfaceDescriptor(); 60 info->code_stub()->GetCallInterfaceDescriptor();
61 return GetStubCallDescriptor(info->isolate(), zone, descriptor, 0, 61 return GetStubCallDescriptor(info->isolate(), zone, descriptor, 0,
62 CallDescriptor::kNoFlags, 62 CallDescriptor::kNoFlags,
63 Operator::kNoProperties); 63 Operator::kNoProperties);
64 } 64 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, 204 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
205 const MachineSignature* sig) { 205 const MachineSignature* sig) {
206 UNIMPLEMENTED(); 206 UNIMPLEMENTED();
207 return NULL; 207 return NULL;
208 } 208 }
209 #endif // !V8_TURBOFAN_BACKEND 209 #endif // !V8_TURBOFAN_BACKEND
210 } 210 }
211 } 211 }
212 } // namespace v8::internal::compiler 212 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698