| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 196   NumberToStringStub stub(isolate); | 196   NumberToStringStub stub(isolate); | 
| 197   return make_callable(stub); | 197   return make_callable(stub); | 
| 198 } | 198 } | 
| 199 | 199 | 
| 200 // static | 200 // static | 
| 201 Callable CodeFactory::RegExpExec(Isolate* isolate) { | 201 Callable CodeFactory::RegExpExec(Isolate* isolate) { | 
| 202   RegExpExecStub stub(isolate); | 202   RegExpExecStub stub(isolate); | 
| 203   return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 203   return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 
| 204 } | 204 } | 
| 205 | 205 | 
|  | 206 // static | 
|  | 207 Callable CodeFactory::StringFromCharCode(Isolate* isolate) { | 
|  | 208   Handle<Code> code(isolate->builtins()->StringFromCharCode()); | 
|  | 209   return Callable(code, BuiltinDescriptor(isolate)); | 
|  | 210 } | 
|  | 211 | 
| 206 #define DECLARE_TFS(Name, Kind, Extra, InterfaceDescriptor) \ | 212 #define DECLARE_TFS(Name, Kind, Extra, InterfaceDescriptor) \ | 
| 207   typedef InterfaceDescriptor##Descriptor Name##Descriptor; | 213   typedef InterfaceDescriptor##Descriptor Name##Descriptor; | 
| 208 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TFS, | 214 BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TFS, | 
| 209              IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) | 215              IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) | 
| 210 #undef DECLARE_TFS | 216 #undef DECLARE_TFS | 
| 211 | 217 | 
| 212 #define TFS_BUILTIN(Name)                             \ | 218 #define TFS_BUILTIN(Name)                             \ | 
| 213   Callable CodeFactory::Name(Isolate* isolate) {      \ | 219   Callable CodeFactory::Name(Isolate* isolate) {      \ | 
| 214     Handle<Code> code(isolate->builtins()->Name());   \ | 220     Handle<Code> code(isolate->builtins()->Name());   \ | 
| 215     return Callable(code, Name##Descriptor(isolate)); \ | 221     return Callable(code, Name##Descriptor(isolate)); \ | 
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 488 } | 494 } | 
| 489 | 495 | 
| 490 // static | 496 // static | 
| 491 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 497 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 
| 492   return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 498   return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 
| 493                   ContextOnlyDescriptor(isolate)); | 499                   ContextOnlyDescriptor(isolate)); | 
| 494 } | 500 } | 
| 495 | 501 | 
| 496 }  // namespace internal | 502 }  // namespace internal | 
| 497 }  // namespace v8 | 503 }  // namespace v8 | 
| OLD | NEW | 
|---|