OLD | NEW |
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 Loading... |
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 |
268 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, | 276 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, |
269 PretenureFlag pretenure_flag) { | 277 PretenureFlag pretenure_flag) { |
270 StringAddStub stub(isolate, flags, pretenure_flag); | 278 StringAddStub stub(isolate, flags, pretenure_flag); |
271 return make_callable(stub); | 279 return make_callable(stub); |
272 } | 280 } |
273 | 281 |
274 // static | 282 // static |
275 Callable CodeFactory::StringCompare(Isolate* isolate, Token::Value token) { | 283 Callable CodeFactory::StringCompare(Isolate* isolate, Token::Value token) { |
276 switch (token) { | 284 switch (token) { |
277 case Token::EQ: | 285 case Token::EQ: |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 } | 492 } |
485 | 493 |
486 // static | 494 // static |
487 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 495 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
488 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 496 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
489 BuiltinDescriptor(isolate)); | 497 BuiltinDescriptor(isolate)); |
490 } | 498 } |
491 | 499 |
492 } // namespace internal | 500 } // namespace internal |
493 } // namespace v8 | 501 } // namespace v8 |
OLD | NEW |