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

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

Issue 1304633002: Correctify instanceof and make it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Add MIPS/MIPS64 ports. Created 5 years, 4 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 // static 147 // static
148 Callable CodeFactory::StoreGlobalViaContext(Isolate* isolate, int depth, 148 Callable CodeFactory::StoreGlobalViaContext(Isolate* isolate, int depth,
149 LanguageMode language_mode) { 149 LanguageMode language_mode) {
150 StoreGlobalViaContextStub stub(isolate, depth, language_mode); 150 StoreGlobalViaContextStub stub(isolate, depth, language_mode);
151 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 151 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
152 } 152 }
153 153
154 154
155 // static 155 // static
156 Callable CodeFactory::Instanceof(Isolate* isolate, 156 Callable CodeFactory::InstanceOf(Isolate* isolate) {
157 InstanceofStub::Flags flags) { 157 InstanceOfStub stub(isolate);
158 InstanceofStub stub(isolate, flags);
159 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 158 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
160 } 159 }
161 160
162 161
163 // static 162 // static
164 Callable CodeFactory::ToBoolean(Isolate* isolate, 163 Callable CodeFactory::ToBoolean(Isolate* isolate,
165 ToBooleanStub::ResultMode mode, 164 ToBooleanStub::ResultMode mode,
166 ToBooleanStub::Types types) { 165 ToBooleanStub::Types types) {
167 ToBooleanStub stub(isolate, mode, types); 166 ToBooleanStub stub(isolate, mode, types);
168 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 167 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 230
232 // static 231 // static
233 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, 232 Callable CodeFactory::CallFunction(Isolate* isolate, int argc,
234 CallFunctionFlags flags) { 233 CallFunctionFlags flags) {
235 CallFunctionStub stub(isolate, argc, flags); 234 CallFunctionStub stub(isolate, argc, flags);
236 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 235 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
237 } 236 }
238 237
239 } // namespace internal 238 } // namespace internal
240 } // namespace v8 239 } // 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