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

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

Issue 1347913003: [stubs] Refactor StringCompareStub and use it for HStringCompareAndBranch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // static 192 // static
193 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, 193 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags,
194 PretenureFlag pretenure_flag) { 194 PretenureFlag pretenure_flag) {
195 StringAddStub stub(isolate, flags, pretenure_flag); 195 StringAddStub stub(isolate, flags, pretenure_flag);
196 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 196 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
197 } 197 }
198 198
199 199
200 // static 200 // static
201 Callable CodeFactory::StringCompare(Isolate* isolate) {
202 StringCompareStub stub(isolate);
203 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
204 }
205
206
207 // static
201 Callable CodeFactory::Typeof(Isolate* isolate) { 208 Callable CodeFactory::Typeof(Isolate* isolate) {
202 TypeofStub stub(isolate); 209 TypeofStub stub(isolate);
203 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 210 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
204 } 211 }
205 212
206 213
207 // static 214 // static
208 Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) { 215 Callable CodeFactory::FastCloneShallowArray(Isolate* isolate) {
209 // TODO(mstarzinger): Thread through AllocationSiteMode at some point. 216 // TODO(mstarzinger): Thread through AllocationSiteMode at some point.
210 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE); 217 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 251
245 252
246 // static 253 // static
247 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) { 254 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) {
248 return Callable(isolate->builtins()->PushArgsAndCall(), 255 return Callable(isolate->builtins()->PushArgsAndCall(),
249 PushArgsAndCallDescriptor(isolate)); 256 PushArgsAndCallDescriptor(isolate));
250 } 257 }
251 258
252 } // namespace internal 259 } // namespace internal
253 } // namespace v8 260 } // 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