| 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 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // static | 104 // static |
| 105 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op, | 105 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op, |
| 106 Strength strength) { | 106 Strength strength) { |
| 107 BinaryOpICStub stub(isolate, op, strength); | 107 BinaryOpICStub stub(isolate, op, strength); |
| 108 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 108 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 109 } | 109 } |
| 110 | 110 |
| 111 | 111 |
| 112 // static | 112 // static |
| 113 Callable CodeFactory::Instanceof(Isolate* isolate, |
| 114 InstanceofStub::Flags flags) { |
| 115 InstanceofStub stub(isolate, flags); |
| 116 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 117 } |
| 118 |
| 119 |
| 120 // static |
| 113 Callable CodeFactory::ToBoolean(Isolate* isolate, | 121 Callable CodeFactory::ToBoolean(Isolate* isolate, |
| 114 ToBooleanStub::ResultMode mode, | 122 ToBooleanStub::ResultMode mode, |
| 115 ToBooleanStub::Types types) { | 123 ToBooleanStub::Types types) { |
| 116 ToBooleanStub stub(isolate, mode, types); | 124 ToBooleanStub stub(isolate, mode, types); |
| 117 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 125 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 118 } | 126 } |
| 119 | 127 |
| 120 | 128 |
| 121 // static | 129 // static |
| 122 Callable CodeFactory::ToNumber(Isolate* isolate) { | 130 Callable CodeFactory::ToNumber(Isolate* isolate) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 181 |
| 174 // static | 182 // static |
| 175 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, | 183 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, |
| 176 CallFunctionFlags flags) { | 184 CallFunctionFlags flags) { |
| 177 CallFunctionStub stub(isolate, argc, flags); | 185 CallFunctionStub stub(isolate, argc, flags); |
| 178 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 186 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 179 } | 187 } |
| 180 | 188 |
| 181 } // namespace internal | 189 } // namespace internal |
| 182 } // namespace v8 | 190 } // namespace v8 |
| OLD | NEW |