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

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

Issue 2511223003: [turbofan] Properly optimize instanceof (even in the presence of @@hasInstance). (Closed)
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_CODE_FACTORY_H_ 5 #ifndef V8_CODE_FACTORY_H_
6 #define V8_CODE_FACTORY_H_ 6 #define V8_CODE_FACTORY_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 static Callable CompareIC(Isolate* isolate, Token::Value op); 57 static Callable CompareIC(Isolate* isolate, Token::Value op);
58 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); 58 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value);
59 59
60 static Callable BinaryOpIC(Isolate* isolate, Token::Value op); 60 static Callable BinaryOpIC(Isolate* isolate, Token::Value op);
61 61
62 static Callable ApiGetter(Isolate* isolate); 62 static Callable ApiGetter(Isolate* isolate);
63 63
64 // Code stubs. Add methods here as needed to reduce dependency on 64 // Code stubs. Add methods here as needed to reduce dependency on
65 // code-stubs.h. 65 // code-stubs.h.
66 static Callable InstanceOf(Isolate* isolate); 66 static Callable InstanceOf(Isolate* isolate);
67 static Callable OrdinaryHasInstance(Isolate* isolate);
67 68
68 static Callable StringFromCharCode(Isolate* isolate); 69 static Callable StringFromCharCode(Isolate* isolate);
69 70
70 static Callable GetProperty(Isolate* isolate); 71 static Callable GetProperty(Isolate* isolate);
71 72
72 static Callable ToBoolean(Isolate* isolate); 73 static Callable ToBoolean(Isolate* isolate);
73 74
74 static Callable ToNumber(Isolate* isolate); 75 static Callable ToNumber(Isolate* isolate);
75 static Callable NonNumberToNumber(Isolate* isolate); 76 static Callable NonNumberToNumber(Isolate* isolate);
76 static Callable StringToNumber(Isolate* isolate); 77 static Callable StringToNumber(Isolate* isolate);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 Isolate* isolate, CallableType function_type = CallableType::kAny); 165 Isolate* isolate, CallableType function_type = CallableType::kAny);
165 static Callable InterpreterPushArgsAndConstructArray(Isolate* isolate); 166 static Callable InterpreterPushArgsAndConstructArray(Isolate* isolate);
166 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); 167 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1);
167 static Callable InterpreterOnStackReplacement(Isolate* isolate); 168 static Callable InterpreterOnStackReplacement(Isolate* isolate);
168 }; 169 };
169 170
170 } // namespace internal 171 } // namespace internal
171 } // namespace v8 172 } // namespace v8
172 173
173 #endif // V8_CODE_FACTORY_H_ 174 #endif // V8_CODE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698