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

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

Issue 1417503008: [turbofan] Use CompareNilIC for abstract equality with null/undefined. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | src/code-factory.cc » ('j') | src/compiler/js-typed-lowering.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 static Callable StoreIC(Isolate* isolate, LanguageMode mode); 49 static Callable StoreIC(Isolate* isolate, LanguageMode mode);
50 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode, 50 static Callable StoreICInOptimizedCode(Isolate* isolate, LanguageMode mode,
51 InlineCacheState initialization_state); 51 InlineCacheState initialization_state);
52 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); 52 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode);
53 static Callable KeyedStoreICInOptimizedCode( 53 static Callable KeyedStoreICInOptimizedCode(
54 Isolate* isolate, LanguageMode mode, 54 Isolate* isolate, LanguageMode mode,
55 InlineCacheState initialization_state); 55 InlineCacheState initialization_state);
56 56
57 static Callable CompareIC(Isolate* isolate, Token::Value op, 57 static Callable CompareIC(Isolate* isolate, Token::Value op,
58 Strength strength); 58 Strength strength);
59 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value);
59 60
60 static Callable BinaryOpIC(Isolate* isolate, Token::Value op, 61 static Callable BinaryOpIC(Isolate* isolate, Token::Value op,
61 Strength strength); 62 Strength strength);
62 63
63 // Code stubs. Add methods here as needed to reduce dependency on 64 // Code stubs. Add methods here as needed to reduce dependency on
64 // code-stubs.h. 65 // code-stubs.h.
65 static Callable InstanceOf(Isolate* isolate); 66 static Callable InstanceOf(Isolate* isolate);
66 67
67 static Callable ToBoolean( 68 static Callable ToBoolean(
68 Isolate* isolate, ToBooleanStub::ResultMode mode, 69 Isolate* isolate, ToBooleanStub::ResultMode mode,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 101
101 static Callable InterpreterPushArgsAndCall(Isolate* isolate); 102 static Callable InterpreterPushArgsAndCall(Isolate* isolate);
102 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); 103 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate);
103 static Callable InterpreterCEntry(Isolate* isolate); 104 static Callable InterpreterCEntry(Isolate* isolate);
104 }; 105 };
105 106
106 } // namespace internal 107 } // namespace internal
107 } // namespace v8 108 } // namespace v8
108 109
109 #endif // V8_CODE_FACTORY_H_ 110 #endif // V8_CODE_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-factory.cc » ('j') | src/compiler/js-typed-lowering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698