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

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

Issue 1380113002: [turbofan] Call FastNewContextStub for function context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment. Created 5 years, 2 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/code-factory.h ('k') | src/compiler/ast-graph-builder.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 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 221
222 // static 222 // static
223 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { 223 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) {
224 FastCloneShallowObjectStub stub(isolate, length); 224 FastCloneShallowObjectStub stub(isolate, length);
225 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 225 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
226 } 226 }
227 227
228 228
229 // static 229 // static
230 Callable CodeFactory::FastNewContext(Isolate* isolate, int slot_count) {
231 FastNewContextStub stub(isolate, slot_count);
232 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
233 }
234
235
236 // static
230 Callable CodeFactory::FastNewClosure(Isolate* isolate, 237 Callable CodeFactory::FastNewClosure(Isolate* isolate,
231 LanguageMode language_mode, 238 LanguageMode language_mode,
232 FunctionKind kind) { 239 FunctionKind kind) {
233 FastNewClosureStub stub(isolate, language_mode, kind); 240 FastNewClosureStub stub(isolate, language_mode, kind);
234 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 241 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
235 } 242 }
236 243
237 244
238 // static 245 // static
239 Callable CodeFactory::ArgumentsAccess(Isolate* isolate, 246 Callable CodeFactory::ArgumentsAccess(Isolate* isolate,
(...skipping 22 matching lines...) Expand all
262 269
263 270
264 // static 271 // static
265 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) { 272 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) {
266 return Callable(isolate->builtins()->PushArgsAndCall(), 273 return Callable(isolate->builtins()->PushArgsAndCall(),
267 PushArgsAndCallDescriptor(isolate)); 274 PushArgsAndCallDescriptor(isolate));
268 } 275 }
269 276
270 } // namespace internal 277 } // namespace internal
271 } // namespace v8 278 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/ast-graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698