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

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

Issue 2399423003: [builtins] Move StringIncludes to a builtin. (Closed)
Patch Set: Add another test. Re-use IsRegExp logic Created 4 years, 2 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-regexp.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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 /* String */ \ 597 /* String */ \
598 ASM(StringConstructor) \ 598 ASM(StringConstructor) \
599 ASM(StringConstructor_ConstructStub) \ 599 ASM(StringConstructor_ConstructStub) \
600 CPP(StringFromCodePoint) \ 600 CPP(StringFromCodePoint) \
601 /* ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits ) */ \ 601 /* ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits ) */ \
602 TFJ(StringFromCharCode, 2) \ 602 TFJ(StringFromCharCode, 2) \
603 /* ES6 section 21.1.3.1 String.prototype.charAt ( pos ) */ \ 603 /* ES6 section 21.1.3.1 String.prototype.charAt ( pos ) */ \
604 TFJ(StringPrototypeCharAt, 2) \ 604 TFJ(StringPrototypeCharAt, 2) \
605 /* ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) */ \ 605 /* ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) */ \
606 TFJ(StringPrototypeCharCodeAt, 2) \ 606 TFJ(StringPrototypeCharCodeAt, 2) \
607 /* ES6 section 21.1.3.7 */ \
608 /* String.prototype.includes ( searchString [ , position ] ) */ \
609 CPP(StringPrototypeIncludes) \
607 /* ES6 section 21.1.3.8 */ \ 610 /* ES6 section 21.1.3.8 */ \
608 /* String.prototype.indexOf ( searchString [ , position ] ) */ \ 611 /* String.prototype.indexOf ( searchString [ , position ] ) */ \
609 CPP(StringPrototypeIndexOf) \ 612 CPP(StringPrototypeIndexOf) \
610 /* ES6 section 21.1.3.9 */ \ 613 /* ES6 section 21.1.3.9 */ \
611 /* String.prototype.lastIndexOf ( searchString [ , position ] ) */ \ 614 /* String.prototype.lastIndexOf ( searchString [ , position ] ) */ \
612 CPP(StringPrototypeLastIndexOf) \ 615 CPP(StringPrototypeLastIndexOf) \
613 /* ES6 section 21.1.3.10 String.prototype.localeCompare ( that ) */ \ 616 /* ES6 section 21.1.3.10 String.prototype.localeCompare ( that ) */ \
614 CPP(StringPrototypeLocaleCompare) \ 617 CPP(StringPrototypeLocaleCompare) \
615 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \ 618 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \
616 CPP(StringPrototypeNormalize) \ 619 CPP(StringPrototypeNormalize) \
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 794
792 friend class Isolate; 795 friend class Isolate;
793 796
794 DISALLOW_COPY_AND_ASSIGN(Builtins); 797 DISALLOW_COPY_AND_ASSIGN(Builtins);
795 }; 798 };
796 799
797 } // namespace internal 800 } // namespace internal
798 } // namespace v8 801 } // namespace v8
799 802
800 #endif // V8_BUILTINS_BUILTINS_H_ 803 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins/builtins-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698