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

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

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
« no previous file with comments | « no previous file | src/builtins/builtins-string.cc » ('j') | src/compiler/js-builtin-reducer.cc » ('J')
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 ASM(Apply) \ 118 ASM(Apply) \
119 ASM(JSEntryTrampoline) \ 119 ASM(JSEntryTrampoline) \
120 ASM(JSConstructEntryTrampoline) \ 120 ASM(JSConstructEntryTrampoline) \
121 ASM(ResumeGeneratorTrampoline) \ 121 ASM(ResumeGeneratorTrampoline) \
122 \ 122 \
123 /* Stack and interrupt check */ \ 123 /* Stack and interrupt check */ \
124 ASM(InterruptCheck) \ 124 ASM(InterruptCheck) \
125 ASM(StackCheck) \ 125 ASM(StackCheck) \
126 \ 126 \
127 /* String helpers */ \ 127 /* String helpers */ \
128 TFS(StringCharAt, BUILTIN, kNoExtraICState, StringCharAt) \
129 TFS(StringCharCodeAt, BUILTIN, kNoExtraICState, StringCharCodeAt) \
128 TFS(StringEqual, BUILTIN, kNoExtraICState, Compare) \ 130 TFS(StringEqual, BUILTIN, kNoExtraICState, Compare) \
129 TFS(StringNotEqual, BUILTIN, kNoExtraICState, Compare) \ 131 TFS(StringGreaterThan, BUILTIN, kNoExtraICState, Compare) \
132 TFS(StringGreaterThanOrEqual, BUILTIN, kNoExtraICState, Compare) \
133 TFS(StringIndexOf, BUILTIN, kNoExtraICState, StringIndexOf) \
130 TFS(StringLessThan, BUILTIN, kNoExtraICState, Compare) \ 134 TFS(StringLessThan, BUILTIN, kNoExtraICState, Compare) \
131 TFS(StringLessThanOrEqual, BUILTIN, kNoExtraICState, Compare) \ 135 TFS(StringLessThanOrEqual, BUILTIN, kNoExtraICState, Compare) \
132 TFS(StringGreaterThan, BUILTIN, kNoExtraICState, Compare) \ 136 TFS(StringNotEqual, BUILTIN, kNoExtraICState, Compare) \
133 TFS(StringGreaterThanOrEqual, BUILTIN, kNoExtraICState, Compare) \
134 TFS(StringCharAt, BUILTIN, kNoExtraICState, StringCharAt) \
135 TFS(StringCharCodeAt, BUILTIN, kNoExtraICState, StringCharCodeAt) \
136 \ 137 \
137 /* Interpreter */ \ 138 /* Interpreter */ \
138 ASM(InterpreterEntryTrampoline) \ 139 ASM(InterpreterEntryTrampoline) \
139 ASM(InterpreterPushArgsAndCall) \ 140 ASM(InterpreterPushArgsAndCall) \
140 ASM(InterpreterPushArgsAndCallFunction) \ 141 ASM(InterpreterPushArgsAndCallFunction) \
141 ASM(InterpreterPushArgsAndTailCall) \ 142 ASM(InterpreterPushArgsAndTailCall) \
142 ASM(InterpreterPushArgsAndTailCallFunction) \ 143 ASM(InterpreterPushArgsAndTailCallFunction) \
143 ASM(InterpreterPushArgsAndConstruct) \ 144 ASM(InterpreterPushArgsAndConstruct) \
144 ASM(InterpreterPushArgsAndConstructFunction) \ 145 ASM(InterpreterPushArgsAndConstructFunction) \
145 ASM(InterpreterPushArgsAndConstructArray) \ 146 ASM(InterpreterPushArgsAndConstructArray) \
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 918
918 friend class Isolate; 919 friend class Isolate;
919 920
920 DISALLOW_COPY_AND_ASSIGN(Builtins); 921 DISALLOW_COPY_AND_ASSIGN(Builtins);
921 }; 922 };
922 923
923 } // namespace internal 924 } // namespace internal
924 } // namespace v8 925 } // namespace v8
925 926
926 #endif // V8_BUILTINS_BUILTINS_H_ 927 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-string.cc » ('j') | src/compiler/js-builtin-reducer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698