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

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

Issue 1825793002: [stubs] Introduce code stubs for bitwise binary operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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
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::Subtract(Isolate* isolate) { 216 Callable CodeFactory::Subtract(Isolate* isolate) {
217 SubtractStub stub(isolate); 217 SubtractStub 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::BitwiseAnd(Isolate* isolate) {
223 BitwiseAndStub stub(isolate);
224 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
225 }
226
227 // static
228 Callable CodeFactory::BitwiseOr(Isolate* isolate) {
229 BitwiseOrStub stub(isolate);
230 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
231 }
232
233 // static
234 Callable CodeFactory::BitwiseXor(Isolate* isolate) {
235 BitwiseXorStub stub(isolate);
236 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
237 }
238
239 // static
222 Callable CodeFactory::LessThan(Isolate* isolate) { 240 Callable CodeFactory::LessThan(Isolate* isolate) {
223 LessThanStub stub(isolate); 241 LessThanStub stub(isolate);
224 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 242 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
225 } 243 }
226 244
227 // static 245 // static
228 Callable CodeFactory::LessThanOrEqual(Isolate* isolate) { 246 Callable CodeFactory::LessThanOrEqual(Isolate* isolate) {
229 LessThanOrEqualStub stub(isolate); 247 LessThanOrEqualStub stub(isolate);
230 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 248 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
231 } 249 }
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 // static 520 // static
503 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 521 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
504 // Note: If we ever use fpregs in the interpreter then we will need to 522 // Note: If we ever use fpregs in the interpreter then we will need to
505 // save fpregs too. 523 // save fpregs too.
506 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 524 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
507 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 525 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
508 } 526 }
509 527
510 } // namespace internal 528 } // namespace internal
511 } // namespace v8 529 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | src/code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698