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

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

Issue 1319973007: [runtime] Add %ToString and %_ToString and remove the TO_STRING builtin. (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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 170
171 // static 171 // static
172 Callable CodeFactory::ToNumber(Isolate* isolate) { 172 Callable CodeFactory::ToNumber(Isolate* isolate) {
173 ToNumberStub stub(isolate); 173 ToNumberStub stub(isolate);
174 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 174 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
175 } 175 }
176 176
177 177
178 // static 178 // static
179 Callable CodeFactory::ToString(Isolate* isolate) {
180 ToStringStub stub(isolate);
181 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
182 }
183
184
185 // static
179 Callable CodeFactory::ToObject(Isolate* isolate) { 186 Callable CodeFactory::ToObject(Isolate* isolate) {
180 ToObjectStub stub(isolate); 187 ToObjectStub stub(isolate);
181 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 188 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
182 } 189 }
183 190
184 191
185 // static 192 // static
186 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, 193 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags,
187 PretenureFlag pretenure_flag) { 194 PretenureFlag pretenure_flag) {
188 StringAddStub stub(isolate, flags, pretenure_flag); 195 StringAddStub stub(isolate, flags, pretenure_flag);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 237
231 // static 238 // static
232 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, 239 Callable CodeFactory::CallFunction(Isolate* isolate, int argc,
233 CallFunctionFlags flags) { 240 CallFunctionFlags flags) {
234 CallFunctionStub stub(isolate, argc, flags); 241 CallFunctionStub stub(isolate, argc, flags);
235 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 242 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
236 } 243 }
237 244
238 } // namespace internal 245 } // namespace internal
239 } // namespace v8 246 } // 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