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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 212 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
213 } | 213 } |
214 | 214 |
215 // static | 215 // static |
216 Callable CodeFactory::GreaterThanOrEqual(Isolate* isolate) { | 216 Callable CodeFactory::GreaterThanOrEqual(Isolate* isolate) { |
217 GreaterThanOrEqualStub stub(isolate); | 217 GreaterThanOrEqualStub stub(isolate); |
218 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 218 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
219 } | 219 } |
220 | 220 |
221 // static | 221 // static |
| 222 Callable CodeFactory::Equal(Isolate* isolate) { |
| 223 EqualStub stub(isolate); |
| 224 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 225 } |
| 226 |
| 227 // static |
| 228 Callable CodeFactory::NotEqual(Isolate* isolate) { |
| 229 NotEqualStub stub(isolate); |
| 230 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 231 } |
| 232 |
| 233 // static |
222 Callable CodeFactory::StrictEqual(Isolate* isolate) { | 234 Callable CodeFactory::StrictEqual(Isolate* isolate) { |
223 StrictEqualStub stub(isolate); | 235 StrictEqualStub stub(isolate); |
224 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 236 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
225 } | 237 } |
226 | 238 |
227 // static | 239 // static |
228 Callable CodeFactory::StrictNotEqual(Isolate* isolate) { | 240 Callable CodeFactory::StrictNotEqual(Isolate* isolate) { |
229 StrictNotEqualStub stub(isolate); | 241 StrictNotEqualStub stub(isolate); |
230 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 242 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
231 } | 243 } |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 // static | 465 // static |
454 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 466 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
455 // Note: If we ever use fpregs in the interpreter then we will need to | 467 // Note: If we ever use fpregs in the interpreter then we will need to |
456 // save fpregs too. | 468 // save fpregs too. |
457 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 469 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
458 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 470 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
459 } | 471 } |
460 | 472 |
461 } // namespace internal | 473 } // namespace internal |
462 } // namespace v8 | 474 } // namespace v8 |
OLD | NEW |