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

Side by Side Diff: src/code-stub-assembler.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/builtins/builtins-string-gen.cc ('k') | src/code-stub-assembler.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 // Check whether the map is for an object with special properties, such as a 701 // Check whether the map is for an object with special properties, such as a
702 // JSProxy or an object with interceptors. 702 // JSProxy or an object with interceptors.
703 Node* InstanceTypeEqual(Node* instance_type, int type); 703 Node* InstanceTypeEqual(Node* instance_type, int type);
704 Node* IsSpecialReceiverMap(Node* map); 704 Node* IsSpecialReceiverMap(Node* map);
705 Node* IsSpecialReceiverInstanceType(Node* instance_type); 705 Node* IsSpecialReceiverInstanceType(Node* instance_type);
706 Node* IsStringInstanceType(Node* instance_type); 706 Node* IsStringInstanceType(Node* instance_type);
707 Node* IsOneByteStringInstanceType(Node* instance_type); 707 Node* IsOneByteStringInstanceType(Node* instance_type);
708 Node* IsExternalStringInstanceType(Node* instance_type); 708 Node* IsExternalStringInstanceType(Node* instance_type);
709 Node* IsShortExternalStringInstanceType(Node* instance_type); 709 Node* IsShortExternalStringInstanceType(Node* instance_type);
710 Node* IsSequentialStringInstanceType(Node* instance_type); 710 Node* IsSequentialStringInstanceType(Node* instance_type);
711 Node* IsConsStringInstanceType(Node* instance_type);
711 Node* IsString(Node* object); 712 Node* IsString(Node* object);
712 Node* IsJSObject(Node* object); 713 Node* IsJSObject(Node* object);
713 Node* IsJSGlobalProxy(Node* object); 714 Node* IsJSGlobalProxy(Node* object);
714 Node* IsJSReceiverInstanceType(Node* instance_type); 715 Node* IsJSReceiverInstanceType(Node* instance_type);
715 Node* IsJSReceiver(Node* object); 716 Node* IsJSReceiver(Node* object);
716 Node* IsJSReceiverMap(Node* map); 717 Node* IsJSReceiverMap(Node* map);
717 Node* IsMap(Node* object); 718 Node* IsMap(Node* object);
718 Node* IsCallableMap(Node* map); 719 Node* IsCallableMap(Node* map);
719 Node* IsDeprecatedMap(Node* map); 720 Node* IsDeprecatedMap(Node* map);
720 Node* IsCallable(Node* object); 721 Node* IsCallable(Node* object);
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 } 1497 }
1497 #else 1498 #else
1498 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1499 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1499 #endif 1500 #endif
1500 1501
1501 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1502 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1502 1503
1503 } // namespace internal 1504 } // namespace internal
1504 } // namespace v8 1505 } // namespace v8
1505 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1506 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-string-gen.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698