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

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

Issue 2638393002: [builtins] Add String.prototype.indexOf fast path in TF (Closed)
Patch Set: hardcode paramater massaging Created 3 years, 10 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') | 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 ASM(Apply) \ 119 ASM(Apply) \
120 ASM(JSEntryTrampoline) \ 120 ASM(JSEntryTrampoline) \
121 ASM(JSConstructEntryTrampoline) \ 121 ASM(JSConstructEntryTrampoline) \
122 ASM(ResumeGeneratorTrampoline) \ 122 ASM(ResumeGeneratorTrampoline) \
123 \ 123 \
124 /* Stack and interrupt check */ \ 124 /* Stack and interrupt check */ \
125 ASM(InterruptCheck) \ 125 ASM(InterruptCheck) \
126 ASM(StackCheck) \ 126 ASM(StackCheck) \
127 \ 127 \
128 /* String helpers */ \ 128 /* String helpers */ \
129 TFS(StringCharAt, BUILTIN, kNoExtraICState, StringCharAt) \
130 TFS(StringCharCodeAt, BUILTIN, kNoExtraICState, StringCharCodeAt) \
129 TFS(StringEqual, BUILTIN, kNoExtraICState, Compare) \ 131 TFS(StringEqual, BUILTIN, kNoExtraICState, Compare) \
130 TFS(StringNotEqual, BUILTIN, kNoExtraICState, Compare) \ 132 TFS(StringGreaterThan, BUILTIN, kNoExtraICState, Compare) \
133 TFS(StringGreaterThanOrEqual, BUILTIN, kNoExtraICState, Compare) \
134 TFS(StringIndexOf, BUILTIN, kNoExtraICState, StringIndexOf) \
131 TFS(StringLessThan, BUILTIN, kNoExtraICState, Compare) \ 135 TFS(StringLessThan, BUILTIN, kNoExtraICState, Compare) \
132 TFS(StringLessThanOrEqual, BUILTIN, kNoExtraICState, Compare) \ 136 TFS(StringLessThanOrEqual, BUILTIN, kNoExtraICState, Compare) \
133 TFS(StringGreaterThan, BUILTIN, kNoExtraICState, Compare) \ 137 TFS(StringNotEqual, BUILTIN, kNoExtraICState, Compare) \
134 TFS(StringGreaterThanOrEqual, BUILTIN, kNoExtraICState, Compare) \
135 TFS(StringCharAt, BUILTIN, kNoExtraICState, StringCharAt) \
136 TFS(StringCharCodeAt, BUILTIN, kNoExtraICState, StringCharCodeAt) \
137 \ 138 \
138 /* Interpreter */ \ 139 /* Interpreter */ \
139 ASM(InterpreterEntryTrampoline) \ 140 ASM(InterpreterEntryTrampoline) \
140 ASM(InterpreterPushArgsAndCall) \ 141 ASM(InterpreterPushArgsAndCall) \
141 ASM(InterpreterPushArgsAndCallFunction) \ 142 ASM(InterpreterPushArgsAndCallFunction) \
142 ASM(InterpreterPushArgsAndTailCall) \ 143 ASM(InterpreterPushArgsAndTailCall) \
143 ASM(InterpreterPushArgsAndTailCallFunction) \ 144 ASM(InterpreterPushArgsAndTailCallFunction) \
144 ASM(InterpreterPushArgsAndConstruct) \ 145 ASM(InterpreterPushArgsAndConstruct) \
145 ASM(InterpreterPushArgsAndConstructFunction) \ 146 ASM(InterpreterPushArgsAndConstructFunction) \
146 ASM(InterpreterPushArgsAndConstructArray) \ 147 ASM(InterpreterPushArgsAndConstructArray) \
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 933
933 friend class Isolate; 934 friend class Isolate;
934 935
935 DISALLOW_COPY_AND_ASSIGN(Builtins); 936 DISALLOW_COPY_AND_ASSIGN(Builtins);
936 }; 937 };
937 938
938 } // namespace internal 939 } // namespace internal
939 } // namespace v8 940 } // namespace v8
940 941
941 #endif // V8_BUILTINS_BUILTINS_H_ 942 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698