| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 // static | 14 // static |
| 15 Callable CodeFactory::LoadIC(Isolate* isolate, ContextualMode mode) { | 15 Callable CodeFactory::LoadIC(Isolate* isolate, ContextualMode mode) { |
| 16 return Callable( | 16 return Callable( |
| 17 LoadIC::initialize_stub(isolate, LoadIC::State(mode).GetExtraICState()), | 17 LoadIC::initialize_stub(isolate, LoadICState(mode).GetExtraICState()), |
| 18 LoadDescriptor(isolate)); | 18 LoadDescriptor(isolate)); |
| 19 } | 19 } |
| 20 | 20 |
| 21 | 21 |
| 22 // static | 22 // static |
| 23 Callable CodeFactory::KeyedLoadIC(Isolate* isolate) { | 23 Callable CodeFactory::KeyedLoadIC(Isolate* isolate) { |
| 24 return Callable(isolate->builtins()->KeyedLoadIC_Initialize(), | 24 return Callable(isolate->builtins()->KeyedLoadIC_Initialize(), |
| 25 LoadDescriptor(isolate)); | 25 LoadDescriptor(isolate)); |
| 26 } | 26 } |
| 27 | 27 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // static | 84 // static |
| 85 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, | 85 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, |
| 86 CallFunctionFlags flags) { | 86 CallFunctionFlags flags) { |
| 87 CallFunctionStub stub(isolate, argc, flags); | 87 CallFunctionStub stub(isolate, argc, flags); |
| 88 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 88 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace internal | 91 } // namespace internal |
| 92 } // namespace v8 | 92 } // namespace v8 |
| OLD | NEW |