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

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

Issue 2645743002: [builtins] Port parameter and argument-related code stubs to CSA (Closed)
Patch Set: Remove stray change 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
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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 337 }
338 338
339 // static 339 // static
340 Callable CodeFactory::FastNewFunctionContext(Isolate* isolate, 340 Callable CodeFactory::FastNewFunctionContext(Isolate* isolate,
341 ScopeType scope_type) { 341 ScopeType scope_type) {
342 return Callable(isolate->builtins()->NewFunctionContext(scope_type), 342 return Callable(isolate->builtins()->NewFunctionContext(scope_type),
343 FastNewFunctionContextDescriptor(isolate)); 343 FastNewFunctionContextDescriptor(isolate));
344 } 344 }
345 345
346 // static 346 // static
347 Callable CodeFactory::FastNewRestParameter(Isolate* isolate, 347 Callable CodeFactory::FastNewRestParameter(Isolate* isolate) {
348 bool skip_stub_frame) { 348 return Callable(isolate->builtins()->FastNewRestParameter(),
349 FastNewRestParameterStub stub(isolate, skip_stub_frame); 349 FastNewRestParameterDescriptor(isolate));
350 return make_callable(stub);
351 } 350 }
352 351
353 // static 352 // static
354 Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate, 353 Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate) {
355 bool skip_stub_frame) { 354 return Callable(isolate->builtins()->FastNewSloppyArguments(),
356 FastNewSloppyArgumentsStub stub(isolate, skip_stub_frame); 355 FastNewRestParameterDescriptor(isolate));
357 return make_callable(stub);
358 } 356 }
359 357
360 // static 358 // static
361 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate, 359 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate) {
362 bool skip_stub_frame) { 360 return Callable(isolate->builtins()->FastNewStrictArguments(),
363 FastNewStrictArgumentsStub stub(isolate, skip_stub_frame); 361 FastNewRestParameterDescriptor(isolate));
364 return make_callable(stub);
365 } 362 }
366 363
367 // static 364 // static
368 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { 365 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) {
369 AllocateHeapNumberStub stub(isolate); 366 AllocateHeapNumberStub stub(isolate);
370 return make_callable(stub); 367 return make_callable(stub);
371 } 368 }
372 369
373 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ 370 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \
374 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ 371 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 } 472 }
476 473
477 // static 474 // static
478 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 475 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
479 return Callable(isolate->builtins()->FunctionPrototypeBind(), 476 return Callable(isolate->builtins()->FunctionPrototypeBind(),
480 BuiltinDescriptor(isolate)); 477 BuiltinDescriptor(isolate));
481 } 478 }
482 479
483 } // namespace internal 480 } // namespace internal
484 } // namespace v8 481 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698