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

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

Issue 2350963004: [builtins] Move StringIndexOf to a C++ builtin. (Closed)
Patch Set: Fix formatting errors 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-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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 /* String */ \ 595 /* String */ \
596 ASM(StringConstructor) \ 596 ASM(StringConstructor) \
597 ASM(StringConstructor_ConstructStub) \ 597 ASM(StringConstructor_ConstructStub) \
598 CPP(StringFromCodePoint) \ 598 CPP(StringFromCodePoint) \
599 /* ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits ) */ \ 599 /* ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits ) */ \
600 TFJ(StringFromCharCode, 2) \ 600 TFJ(StringFromCharCode, 2) \
601 /* ES6 section 21.1.3.1 String.prototype.charAt ( pos ) */ \ 601 /* ES6 section 21.1.3.1 String.prototype.charAt ( pos ) */ \
602 TFJ(StringPrototypeCharAt, 2) \ 602 TFJ(StringPrototypeCharAt, 2) \
603 /* ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) */ \ 603 /* ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) */ \
604 TFJ(StringPrototypeCharCodeAt, 2) \ 604 TFJ(StringPrototypeCharCodeAt, 2) \
605 /* ES6 section 21.1.3.8 */ \
606 /* String.prototype.indexOf ( searchString [ , position ] ) */ \
607 CPP(StringPrototypeIndexOf) \
605 /* ES6 section 21.1.3.9 */ \ 608 /* ES6 section 21.1.3.9 */ \
606 /* String.prototype.lastIndexOf ( searchString [ , position ] ) */ \ 609 /* String.prototype.lastIndexOf ( searchString [ , position ] ) */ \
607 CPP(StringPrototypeLastIndexOf) \ 610 CPP(StringPrototypeLastIndexOf) \
608 /* ES6 section 21.1.3.10 String.prototype.localeCompare ( that ) */ \ 611 /* ES6 section 21.1.3.10 String.prototype.localeCompare ( that ) */ \
609 CPP(StringPrototypeLocaleCompare) \ 612 CPP(StringPrototypeLocaleCompare) \
610 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \ 613 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \
611 CPP(StringPrototypeNormalize) \ 614 CPP(StringPrototypeNormalize) \
612 /* ES6 section B.2.3.1 String.prototype.substr ( start, length ) */ \ 615 /* ES6 section B.2.3.1 String.prototype.substr ( start, length ) */ \
613 TFJ(StringPrototypeSubstr, 3) \ 616 TFJ(StringPrototypeSubstr, 3) \
614 /* ES6 section 21.1.3.19 String.prototype.substring ( start, end ) */ \ 617 /* ES6 section 21.1.3.19 String.prototype.substring ( start, end ) */ \
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 789
787 friend class Isolate; 790 friend class Isolate;
788 791
789 DISALLOW_COPY_AND_ASSIGN(Builtins); 792 DISALLOW_COPY_AND_ASSIGN(Builtins);
790 }; 793 };
791 794
792 } // namespace internal 795 } // namespace internal
793 } // namespace v8 796 } // namespace v8
794 797
795 #endif // V8_BUILTINS_BUILTINS_H_ 798 #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