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

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

Issue 703473004: [turbofan] Add AllocateHeapNumberStub to avoid runtime call. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // static 98 // static
99 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags, 99 Callable CodeFactory::StringAdd(Isolate* isolate, StringAddFlags flags,
100 PretenureFlag pretenure_flag) { 100 PretenureFlag pretenure_flag) {
101 StringAddStub stub(isolate, flags, pretenure_flag); 101 StringAddStub stub(isolate, flags, pretenure_flag);
102 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 102 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
103 } 103 }
104 104
105 105
106 // static 106 // static
107 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) {
108 AllocateHeapNumberStub stub(isolate);
109 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
110 }
111
112
113 // static
107 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, 114 Callable CodeFactory::CallFunction(Isolate* isolate, int argc,
108 CallFunctionFlags flags) { 115 CallFunctionFlags flags) {
109 CallFunctionStub stub(isolate, argc, flags); 116 CallFunctionStub stub(isolate, argc, flags);
110 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 117 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
111 } 118 }
112 119
113 } // namespace internal 120 } // namespace internal
114 } // namespace v8 121 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | src/compiler/change-lowering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698