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

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

Issue 2433923003: [regexp] Add fast-path for global, callable replace (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/compiler/code-assembler.cc ('k') | src/runtime/runtime-regexp.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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 F(JSProxyConstruct, -1 /* >= 3 */, 1) \ 454 F(JSProxyConstruct, -1 /* >= 3 */, 1) \
455 F(JSProxyGetTarget, 1, 1) \ 455 F(JSProxyGetTarget, 1, 1) \
456 F(JSProxyGetHandler, 1, 1) \ 456 F(JSProxyGetHandler, 1, 1) \
457 F(JSProxyRevoke, 1, 1) 457 F(JSProxyRevoke, 1, 1)
458 458
459 #define FOR_EACH_INTRINSIC_REGEXP(F) \ 459 #define FOR_EACH_INTRINSIC_REGEXP(F) \
460 F(IsRegExp, 1, 1) \ 460 F(IsRegExp, 1, 1) \
461 F(RegExpConstructResult, 3, 1) \ 461 F(RegExpConstructResult, 3, 1) \
462 F(RegExpCreate, 1, 1) \ 462 F(RegExpCreate, 1, 1) \
463 F(RegExpExec, 4, 1) \ 463 F(RegExpExec, 4, 1) \
464 F(RegExpExecMultiple, 4, 1) \
464 F(RegExpExecReThrow, 4, 1) \ 465 F(RegExpExecReThrow, 4, 1) \
465 F(RegExpFlags, 1, 1) \ 466 F(RegExpFlags, 1, 1) \
466 F(RegExpInitializeAndCompile, 3, 1) \ 467 F(RegExpInitializeAndCompile, 3, 1) \
467 F(RegExpInternalReplace, 3, 1) \ 468 F(RegExpInternalReplace, 3, 1) \
468 F(RegExpReplace, 3, 1) \ 469 F(RegExpReplace, 3, 1) \
469 F(RegExpSource, 1, 1) \ 470 F(RegExpSource, 1, 1) \
470 F(StringReplaceGlobalRegExpWithString, 4, 1) \ 471 F(StringReplaceGlobalRegExpWithString, 4, 1) \
471 F(StringReplaceGlobalRegExpWithFunction, 3, 1) \
472 F(StringReplaceNonGlobalRegExpWithFunction, 3, 1) \ 472 F(StringReplaceNonGlobalRegExpWithFunction, 3, 1) \
473 F(StringSplit, 3, 1) 473 F(StringSplit, 3, 1)
474 474
475 #define FOR_EACH_INTRINSIC_SCOPES(F) \ 475 #define FOR_EACH_INTRINSIC_SCOPES(F) \
476 F(ThrowConstAssignError, 0, 1) \ 476 F(ThrowConstAssignError, 0, 1) \
477 F(DeclareGlobals, 3, 1) \ 477 F(DeclareGlobals, 3, 1) \
478 F(DeclareGlobalsForInterpreter, 3, 1) \ 478 F(DeclareGlobalsForInterpreter, 3, 1) \
479 F(InitializeVarGlobal, 3, 1) \ 479 F(InitializeVarGlobal, 3, 1) \
480 F(DeclareEvalFunction, 2, 1) \ 480 F(DeclareEvalFunction, 2, 1) \
481 F(DeclareEvalVar, 1, 1) \ 481 F(DeclareEvalVar, 1, 1) \
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 1131
1132 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1132 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1133 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1133 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1134 STATIC_ASSERT(LANGUAGE_END == 2); 1134 STATIC_ASSERT(LANGUAGE_END == 2);
1135 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; 1135 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {};
1136 1136
1137 } // namespace internal 1137 } // namespace internal
1138 } // namespace v8 1138 } // namespace v8
1139 1139
1140 #endif // V8_RUNTIME_RUNTIME_H_ 1140 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | src/runtime/runtime-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698