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

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

Issue 2813843002: [string] Add a fast path to String.p.replace (Closed)
Patch Set: Don't scan twice Created 3 years, 8 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/objects.cc ('k') | src/runtime/runtime-strings.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 F(PushWithContext, 3, 1) \ 511 F(PushWithContext, 3, 1) \
512 F(PushCatchContext, 4, 1) \ 512 F(PushCatchContext, 4, 1) \
513 F(PushBlockContext, 2, 1) \ 513 F(PushBlockContext, 2, 1) \
514 F(DeleteLookupSlot, 1, 1) \ 514 F(DeleteLookupSlot, 1, 1) \
515 F(LoadLookupSlot, 1, 1) \ 515 F(LoadLookupSlot, 1, 1) \
516 F(LoadLookupSlotInsideTypeof, 1, 1) \ 516 F(LoadLookupSlotInsideTypeof, 1, 1) \
517 F(StoreLookupSlot_Sloppy, 2, 1) \ 517 F(StoreLookupSlot_Sloppy, 2, 1) \
518 F(StoreLookupSlot_Strict, 2, 1) 518 F(StoreLookupSlot_Strict, 2, 1)
519 519
520 #define FOR_EACH_INTRINSIC_STRINGS(F) \ 520 #define FOR_EACH_INTRINSIC_STRINGS(F) \
521 F(GetSubstitution, 4, 1) \ 521 F(GetSubstitution, 5, 1) \
522 F(StringReplaceOneCharWithString, 3, 1) \ 522 F(StringReplaceOneCharWithString, 3, 1) \
523 F(StringIndexOf, 3, 1) \ 523 F(StringIndexOf, 3, 1) \
524 F(StringIndexOfUnchecked, 3, 1) \ 524 F(StringIndexOfUnchecked, 3, 1) \
525 F(StringLastIndexOf, 2, 1) \ 525 F(StringLastIndexOf, 2, 1) \
526 F(SubString, 3, 1) \ 526 F(SubString, 3, 1) \
527 F(StringAdd, 2, 1) \ 527 F(StringAdd, 2, 1) \
528 F(InternalizeString, 1, 1) \ 528 F(InternalizeString, 1, 1) \
529 F(StringCharCodeAtRT, 2, 1) \ 529 F(StringCharCodeAtRT, 2, 1) \
530 F(StringCompare, 2, 1) \ 530 F(StringCompare, 2, 1) \
531 F(StringBuilderConcat, 3, 1) \ 531 F(StringBuilderConcat, 3, 1) \
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 kMaybeDeopted = 1 << 3, 841 kMaybeDeopted = 1 << 3,
842 kOptimized = 1 << 4, 842 kOptimized = 1 << 4,
843 kTurboFanned = 1 << 5, 843 kTurboFanned = 1 << 5,
844 kInterpreted = 1 << 6, 844 kInterpreted = 1 << 6,
845 }; 845 };
846 846
847 } // namespace internal 847 } // namespace internal
848 } // namespace v8 848 } // namespace v8
849 849
850 #endif // V8_RUNTIME_RUNTIME_H_ 850 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698