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

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

Issue 1708313002: [stubs] Introduce a dedicated FastNewObjectStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove TODO. Created 4 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
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // static 263 // static
264 Callable CodeFactory::FastNewClosure(Isolate* isolate, 264 Callable CodeFactory::FastNewClosure(Isolate* isolate,
265 LanguageMode language_mode, 265 LanguageMode language_mode,
266 FunctionKind kind) { 266 FunctionKind kind) {
267 FastNewClosureStub stub(isolate, language_mode, kind); 267 FastNewClosureStub stub(isolate, language_mode, kind);
268 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 268 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
269 } 269 }
270 270
271 271
272 // static 272 // static
273 Callable CodeFactory::FastNewObject(Isolate* isolate) {
274 FastNewObjectStub stub(isolate);
275 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
276 }
277
278
279 // static
273 Callable CodeFactory::FastNewRestParameter(Isolate* isolate) { 280 Callable CodeFactory::FastNewRestParameter(Isolate* isolate) {
274 FastNewRestParameterStub stub(isolate); 281 FastNewRestParameterStub stub(isolate);
275 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 282 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
276 } 283 }
277 284
278 285
279 // static 286 // static
280 Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate) { 287 Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate) {
281 FastNewSloppyArgumentsStub stub(isolate); 288 FastNewSloppyArgumentsStub stub(isolate);
282 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 289 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // static 372 // static
366 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 373 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
367 // Note: If we ever use fpregs in the interpreter then we will need to 374 // Note: If we ever use fpregs in the interpreter then we will need to
368 // save fpregs too. 375 // save fpregs too.
369 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 376 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
370 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 377 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
371 } 378 }
372 379
373 } // namespace internal 380 } // namespace internal
374 } // namespace v8 381 } // namespace v8
OLDNEW
« src/bailout-reason.h ('K') | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698