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

Side by Side Diff: src/builtins/builtins.h

Issue 2351643002: [builtins] Move StringIndexOf to a builtin. (Closed)
Patch Set: Fix signed vs unsigned comparison Created 4 years, 3 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/bootstrapper.cc ('k') | src/builtins/builtins-string.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #ifndef V8_BUILTINS_BUILTINS_H_ 5 #ifndef V8_BUILTINS_BUILTINS_H_
6 #define V8_BUILTINS_BUILTINS_H_ 6 #define V8_BUILTINS_BUILTINS_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 10
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 /* String */ \ 528 /* String */ \
529 ASM(StringConstructor) \ 529 ASM(StringConstructor) \
530 ASM(StringConstructor_ConstructStub) \ 530 ASM(StringConstructor_ConstructStub) \
531 CPP(StringFromCodePoint) \ 531 CPP(StringFromCodePoint) \
532 /* ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits ) */ \ 532 /* ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits ) */ \
533 TFJ(StringFromCharCode, 2) \ 533 TFJ(StringFromCharCode, 2) \
534 /* ES6 section 21.1.3.1 String.prototype.charAt ( pos ) */ \ 534 /* ES6 section 21.1.3.1 String.prototype.charAt ( pos ) */ \
535 TFJ(StringPrototypeCharAt, 2) \ 535 TFJ(StringPrototypeCharAt, 2) \
536 /* ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) */ \ 536 /* ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) */ \
537 TFJ(StringPrototypeCharCodeAt, 2) \ 537 TFJ(StringPrototypeCharCodeAt, 2) \
538 /* ES6 section 21.1.3.8 */ \
539 /* String.prototype.indexOf ( searchString [ , position ] ) */ \
540 CPP(StringPrototypeIndexOf) \
538 /* ES6 section 21.1.3.9 */ \ 541 /* ES6 section 21.1.3.9 */ \
539 /* String.prototype.lastIndexOf ( searchString [ , position ] ) */ \ 542 /* String.prototype.lastIndexOf ( searchString [ , position ] ) */ \
540 CPP(StringPrototypeLastIndexOf) \ 543 CPP(StringPrototypeLastIndexOf) \
541 /* ES6 section 21.1.3.10 String.prototype.localeCompare ( that ) */ \ 544 /* ES6 section 21.1.3.10 String.prototype.localeCompare ( that ) */ \
542 CPP(StringPrototypeLocaleCompare) \ 545 CPP(StringPrototypeLocaleCompare) \
543 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \ 546 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \
544 CPP(StringPrototypeNormalize) \ 547 CPP(StringPrototypeNormalize) \
545 /* ES6 section 21.1.3.25 String.prototype.toString () */ \ 548 /* ES6 section 21.1.3.25 String.prototype.toString () */ \
546 TFJ(StringPrototypeToString, 1) \ 549 TFJ(StringPrototypeToString, 1) \
547 CPP(StringPrototypeTrim) \ 550 CPP(StringPrototypeTrim) \
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 713
711 friend class Isolate; 714 friend class Isolate;
712 715
713 DISALLOW_COPY_AND_ASSIGN(Builtins); 716 DISALLOW_COPY_AND_ASSIGN(Builtins);
714 }; 717 };
715 718
716 } // namespace internal 719 } // namespace internal
717 } // namespace v8 720 } // namespace v8
718 721
719 #endif // V8_BUILTINS_BUILTINS_H_ 722 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins/builtins-string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698