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

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

Issue 2645743002: [builtins] Port parameter and argument-related code stubs to CSA (Closed)
Patch Set: Review feedback Created 3 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/code-factory.h ('k') | src/code-stub-assembler.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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 } 339 }
340 340
341 // static 341 // static
342 Callable CodeFactory::FastNewFunctionContext(Isolate* isolate, 342 Callable CodeFactory::FastNewFunctionContext(Isolate* isolate,
343 ScopeType scope_type) { 343 ScopeType scope_type) {
344 return Callable(isolate->builtins()->NewFunctionContext(scope_type), 344 return Callable(isolate->builtins()->NewFunctionContext(scope_type),
345 FastNewFunctionContextDescriptor(isolate)); 345 FastNewFunctionContextDescriptor(isolate));
346 } 346 }
347 347
348 // static 348 // static
349 Callable CodeFactory::FastNewRestParameter(Isolate* isolate, 349 Callable CodeFactory::FastNewRestParameter(Isolate* isolate) {
350 bool skip_stub_frame) { 350 return Callable(isolate->builtins()->FastNewRestParameter(),
351 FastNewRestParameterStub stub(isolate, skip_stub_frame); 351 FastNewRestParameterDescriptor(isolate));
352 return make_callable(stub);
353 } 352 }
354 353
355 // static 354 // static
356 Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate, 355 Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate) {
357 bool skip_stub_frame) { 356 return Callable(isolate->builtins()->FastNewSloppyArguments(),
358 FastNewSloppyArgumentsStub stub(isolate, skip_stub_frame); 357 FastNewRestParameterDescriptor(isolate));
359 return make_callable(stub);
360 } 358 }
361 359
362 // static 360 // static
363 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate, 361 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate) {
364 bool skip_stub_frame) { 362 return Callable(isolate->builtins()->FastNewStrictArguments(),
365 FastNewStrictArgumentsStub stub(isolate, skip_stub_frame); 363 FastNewRestParameterDescriptor(isolate));
366 return make_callable(stub);
367 } 364 }
368 365
369 // static 366 // static
370 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { 367 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) {
371 AllocateHeapNumberStub stub(isolate); 368 AllocateHeapNumberStub stub(isolate);
372 return make_callable(stub); 369 return make_callable(stub);
373 } 370 }
374 371
375 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ 372 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \
376 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ 373 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 } 481 }
485 482
486 // static 483 // static
487 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 484 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
488 return Callable(isolate->builtins()->FunctionPrototypeBind(), 485 return Callable(isolate->builtins()->FunctionPrototypeBind(),
489 BuiltinDescriptor(isolate)); 486 BuiltinDescriptor(isolate));
490 } 487 }
491 488
492 } // namespace internal 489 } // namespace internal
493 } // namespace v8 490 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stub-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698