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

Side by Side Diff: src/code-factory.cc

Issue 2679063003: Revert of [regexp] Add stub for RegExpExec instead of inlining (Closed)
Patch Set: 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 | « src/code-factory.h ('k') | src/interface-descriptors.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 TFS_BUILTIN(StringEqual) 258 TFS_BUILTIN(StringEqual)
259 TFS_BUILTIN(StringNotEqual) 259 TFS_BUILTIN(StringNotEqual)
260 TFS_BUILTIN(StringLessThan) 260 TFS_BUILTIN(StringLessThan)
261 TFS_BUILTIN(StringLessThanOrEqual) 261 TFS_BUILTIN(StringLessThanOrEqual)
262 TFS_BUILTIN(StringGreaterThan) 262 TFS_BUILTIN(StringGreaterThan)
263 TFS_BUILTIN(StringGreaterThanOrEqual) 263 TFS_BUILTIN(StringGreaterThanOrEqual)
264 264
265 #undef TFS_BUILTIN 265 #undef TFS_BUILTIN
266 266
267 // static 267 // static
268 Callable CodeFactory::RegExpExecInternal(Isolate* isolate, bool is_fastpath) {
269 Handle<Code> code(is_fastpath
270 ? isolate->builtins()->RegExpExecInternalFast()
271 : isolate->builtins()->RegExpExecInternalSlow());
272 return Callable(code, RegExpExecInternalDescriptor(isolate));
273 }
274
275 // static
276 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, 268 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags,
277 PretenureFlag pretenure_flag) { 269 PretenureFlag pretenure_flag) {
278 StringAddStub stub(isolate, flags, pretenure_flag); 270 StringAddStub stub(isolate, flags, pretenure_flag);
279 return make_callable(stub); 271 return make_callable(stub);
280 } 272 }
281 273
282 // static 274 // static
283 Callable CodeFactory::StringCompare(Isolate* isolate, Token::Value token) { 275 Callable CodeFactory::StringCompare(Isolate* isolate, Token::Value token) {
284 switch (token) { 276 switch (token) {
285 case Token::EQ: 277 case Token::EQ:
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 } 484 }
493 485
494 // static 486 // static
495 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { 487 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
496 return Callable(isolate->builtins()->FunctionPrototypeBind(), 488 return Callable(isolate->builtins()->FunctionPrototypeBind(),
497 BuiltinDescriptor(isolate)); 489 BuiltinDescriptor(isolate));
498 } 490 }
499 491
500 } // namespace internal 492 } // namespace internal
501 } // namespace v8 493 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698