Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: src/code-factory.cc

Issue 1761783004: [WIP] EqualStub and NotEqualStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@StringRelationalComparison
Patch Set: Updates Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698