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

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

Issue 2638393002: [builtins] Add String.prototype.indexOf fast path in TF (Closed)
Patch Set: update comments Created 3 years, 11 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 CompareDescriptor(isolate)); 331 CompareDescriptor(isolate));
332 } 332 }
333 333
334 // static 334 // static
335 Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) { 335 Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) {
336 return Callable(isolate->builtins()->StringGreaterThanOrEqual(), 336 return Callable(isolate->builtins()->StringGreaterThanOrEqual(),
337 CompareDescriptor(isolate)); 337 CompareDescriptor(isolate));
338 } 338 }
339 339
340 // static 340 // static
341 Callable CodeFactory::StringIndexOf(Isolate* isolate) {
342 return Callable(isolate->builtins()->StringIndexOf(),
343 StringIndexOfDescriptor(isolate));
344 }
345
346 // static
341 Callable CodeFactory::SubString(Isolate* isolate) { 347 Callable CodeFactory::SubString(Isolate* isolate) {
342 SubStringStub stub(isolate); 348 SubStringStub stub(isolate);
343 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 349 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
344 } 350 }
345 351
346 // static 352 // static
347 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { 353 Callable CodeFactory::ResumeGenerator(Isolate* isolate) {
348 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(), 354 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(),
349 ResumeGeneratorDescriptor(isolate)); 355 ResumeGeneratorDescriptor(isolate));
350 } 356 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 } 520 }
515 521
516 // static 522 // static
517 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 523 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
518 return Callable(isolate->builtins()->FunctionPrototypeBind(), 524 return Callable(isolate->builtins()->FunctionPrototypeBind(),
519 BuiltinDescriptor(isolate)); 525 BuiltinDescriptor(isolate));
520 } 526 }
521 527
522 } // namespace internal 528 } // namespace internal
523 } // namespace v8 529 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698