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

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

Issue 1758333002: [compiler] Introduce code stubs for string relational comparisons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AbstractRelationalComparison
Patch Set: 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 250 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
251 } 251 }
252 252
253 // static 253 // static
254 Callable CodeFactory::StringNotEqual(Isolate* isolate) { 254 Callable CodeFactory::StringNotEqual(Isolate* isolate) {
255 StringNotEqualStub stub(isolate); 255 StringNotEqualStub stub(isolate);
256 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 256 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
257 } 257 }
258 258
259 // static 259 // static
260 Callable CodeFactory::StringLessThan(Isolate* isolate) {
261 StringLessThanStub stub(isolate);
262 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
263 }
264
265 // static
266 Callable CodeFactory::StringLessThanOrEqual(Isolate* isolate) {
267 StringLessThanOrEqualStub stub(isolate);
268 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
269 }
270
271 // static
272 Callable CodeFactory::StringGreaterThan(Isolate* isolate) {
273 StringGreaterThanStub stub(isolate);
274 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
275 }
276
277 // static
278 Callable CodeFactory::StringGreaterThanOrEqual(Isolate* isolate) {
279 StringGreaterThanOrEqualStub stub(isolate);
280 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
281 }
282
283 // static
260 Callable CodeFactory::SubString(Isolate* isolate) { 284 Callable CodeFactory::SubString(Isolate* isolate) {
261 SubStringStub stub(isolate); 285 SubStringStub stub(isolate);
262 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 286 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
263 } 287 }
264 288
265 289
266 // static 290 // static
267 Callable CodeFactory::Typeof(Isolate* isolate) { 291 Callable CodeFactory::Typeof(Isolate* isolate) {
268 TypeofStub stub(isolate); 292 TypeofStub stub(isolate);
269 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 293 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // static 435 // static
412 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 436 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
413 // Note: If we ever use fpregs in the interpreter then we will need to 437 // Note: If we ever use fpregs in the interpreter then we will need to
414 // save fpregs too. 438 // save fpregs too.
415 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 439 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
416 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 440 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
417 } 441 }
418 442
419 } // namespace internal 443 } // namespace internal
420 } // namespace v8 444 } // 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