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

Side by Side Diff: src/code-factory.cc

Issue 1348773002: [turbofan] Call ArgumentsAccessStub to materialize arguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: One more variant. Created 5 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
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-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // static 222 // static
223 Callable CodeFactory::FastNewClosure(Isolate* isolate, 223 Callable CodeFactory::FastNewClosure(Isolate* isolate,
224 LanguageMode language_mode, 224 LanguageMode language_mode,
225 FunctionKind kind) { 225 FunctionKind kind) {
226 FastNewClosureStub stub(isolate, language_mode, kind); 226 FastNewClosureStub stub(isolate, language_mode, kind);
227 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 227 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
228 } 228 }
229 229
230 230
231 // static 231 // static
232 Callable CodeFactory::ArgumentsAccess(Isolate* isolate,
233 ArgumentsAccessStub::Type type) {
234 ArgumentsAccessStub stub(isolate, type);
235 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
236 }
237
238
239 // static
232 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { 240 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) {
233 AllocateHeapNumberStub stub(isolate); 241 AllocateHeapNumberStub stub(isolate);
234 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 242 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
235 } 243 }
236 244
237 245
238 // static 246 // static
239 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, 247 Callable CodeFactory::CallFunction(Isolate* isolate, int argc,
240 CallFunctionFlags flags) { 248 CallFunctionFlags flags) {
241 CallFunctionStub stub(isolate, argc, flags); 249 CallFunctionStub stub(isolate, argc, flags);
242 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 250 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
243 } 251 }
244 252
245 253
246 // static 254 // static
247 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) { 255 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) {
248 return Callable(isolate->builtins()->PushArgsAndCall(), 256 return Callable(isolate->builtins()->PushArgsAndCall(),
249 PushArgsAndCallDescriptor(isolate)); 257 PushArgsAndCallDescriptor(isolate));
250 } 258 }
251 259
252 } // namespace internal 260 } // namespace internal
253 } // namespace v8 261 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | src/compiler/js-typed-lowering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698