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

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

Issue 2638393002: [builtins] Add String.prototype.indexOf fast path in TF (Closed)
Patch Set: hardcode paramater massaging 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
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/js-builtin-reducer.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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 case Token::GTE: 287 case Token::GTE:
288 return StringGreaterThanOrEqual(isolate); 288 return StringGreaterThanOrEqual(isolate);
289 default: 289 default:
290 break; 290 break;
291 } 291 }
292 UNREACHABLE(); 292 UNREACHABLE();
293 return StringEqual(isolate); 293 return StringEqual(isolate);
294 } 294 }
295 295
296 // static 296 // static
297 Callable CodeFactory::StringIndexOf(Isolate* isolate) {
298 return Callable(isolate->builtins()->StringIndexOf(),
299 StringIndexOfDescriptor(isolate));
300 }
301
302 // static
297 Callable CodeFactory::SubString(Isolate* isolate) { 303 Callable CodeFactory::SubString(Isolate* isolate) {
298 SubStringStub stub(isolate); 304 SubStringStub stub(isolate);
299 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 305 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
300 } 306 }
301 307
302 // static 308 // static
303 Callable CodeFactory::ResumeGenerator(Isolate* isolate) { 309 Callable CodeFactory::ResumeGenerator(Isolate* isolate) {
304 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(), 310 return Callable(isolate->builtins()->ResumeGeneratorTrampoline(),
305 ResumeGeneratorDescriptor(isolate)); 311 ResumeGeneratorDescriptor(isolate));
306 } 312 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 } 445 }
440 446
441 // static 447 // static
442 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 448 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
443 return Callable(isolate->builtins()->FunctionPrototypeBind(), 449 return Callable(isolate->builtins()->FunctionPrototypeBind(),
444 BuiltinDescriptor(isolate)); 450 BuiltinDescriptor(isolate));
445 } 451 }
446 452
447 } // namespace internal 453 } // namespace internal
448 } // namespace v8 454 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/compiler/js-builtin-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698