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

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

Issue 2752273003: [builtins] Implement Array.prototype.reduce in the CSA (Closed)
Patch Set: Simplify Created 3 years, 9 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/builtins/builtins-descriptors.h" 8 #include "src/builtins/builtins-descriptors.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 IteratingArrayBuiltinLoopContinuationDescriptor(isolate)); 506 IteratingArrayBuiltinLoopContinuationDescriptor(isolate));
507 } 507 }
508 508
509 // static 509 // static
510 Callable CodeFactory::ArrayEveryLoopContinuation(Isolate* isolate) { 510 Callable CodeFactory::ArrayEveryLoopContinuation(Isolate* isolate) {
511 return Callable(isolate->builtins()->ArrayEveryLoopContinuation(), 511 return Callable(isolate->builtins()->ArrayEveryLoopContinuation(),
512 IteratingArrayBuiltinLoopContinuationDescriptor(isolate)); 512 IteratingArrayBuiltinLoopContinuationDescriptor(isolate));
513 } 513 }
514 514
515 // static 515 // static
516 Callable CodeFactory::ArrayReduceLoopContinuation(Isolate* isolate) {
517 return Callable(isolate->builtins()->ArrayReduceLoopContinuation(),
518 IteratingArrayBuiltinLoopContinuationDescriptor(isolate));
519 }
520
521 // static
516 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 522 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
517 return Callable(isolate->builtins()->FunctionPrototypeBind(), 523 return Callable(isolate->builtins()->FunctionPrototypeBind(),
518 BuiltinDescriptor(isolate)); 524 BuiltinDescriptor(isolate));
519 } 525 }
520 526
521 } // namespace internal 527 } // namespace internal
522 } // namespace v8 528 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698