| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 TFS_BUILTIN(NewUnmappedArgumentsElements) | 251 TFS_BUILTIN(NewUnmappedArgumentsElements) |
| 252 TFS_BUILTIN(NewRestParameterElements) | 252 TFS_BUILTIN(NewRestParameterElements) |
| 253 TFS_BUILTIN(PromiseHandleReject) | 253 TFS_BUILTIN(PromiseHandleReject) |
| 254 TFS_BUILTIN(GetSuperConstructor) | 254 TFS_BUILTIN(GetSuperConstructor) |
| 255 TFS_BUILTIN(StringCharAt) | 255 TFS_BUILTIN(StringCharAt) |
| 256 TFS_BUILTIN(StringCharCodeAt) | 256 TFS_BUILTIN(StringCharCodeAt) |
| 257 | 257 |
| 258 #undef TFS_BUILTIN | 258 #undef TFS_BUILTIN |
| 259 | 259 |
| 260 // static | 260 // static |
| 261 Callable CodeFactory::Inc(Isolate* isolate) { | |
| 262 IncStub stub(isolate); | |
| 263 return make_callable(stub); | |
| 264 } | |
| 265 | |
| 266 // static | |
| 267 Callable CodeFactory::Dec(Isolate* isolate) { | |
| 268 DecStub stub(isolate); | |
| 269 return make_callable(stub); | |
| 270 } | |
| 271 | |
| 272 // static | |
| 273 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, | 261 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, |
| 274 PretenureFlag pretenure_flag) { | 262 PretenureFlag pretenure_flag) { |
| 275 StringAddStub stub(isolate, flags, pretenure_flag); | 263 StringAddStub stub(isolate, flags, pretenure_flag); |
| 276 return make_callable(stub); | 264 return make_callable(stub); |
| 277 } | 265 } |
| 278 | 266 |
| 279 // static | 267 // static |
| 280 Callable CodeFactory::StringCompare(Isolate* isolate, Token::Value token) { | 268 Callable CodeFactory::StringCompare(Isolate* isolate, Token::Value token) { |
| 281 switch (token) { | 269 switch (token) { |
| 282 case Token::EQ: | 270 case Token::EQ: |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 } | 502 } |
| 515 | 503 |
| 516 // static | 504 // static |
| 517 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 505 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
| 518 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 506 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
| 519 BuiltinDescriptor(isolate)); | 507 BuiltinDescriptor(isolate)); |
| 520 } | 508 } |
| 521 | 509 |
| 522 } // namespace internal | 510 } // namespace internal |
| 523 } // namespace v8 | 511 } // namespace v8 |
| OLD | NEW |