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

Side by Side Diff: src/ic/ic.h

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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_IC_H_ 5 #ifndef V8_IC_H_
6 #define V8_IC_H_ 6 #define V8_IC_H_
7 7
8 #include "src/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 static void RegisterWeakMapDependency(Handle<Code> stub); 81 static void RegisterWeakMapDependency(Handle<Code> stub);
82 82
83 // This function is called when a weak map in the stub is dying, 83 // This function is called when a weak map in the stub is dying,
84 // invalidates the stub by setting maps in it to undefined. 84 // invalidates the stub by setting maps in it to undefined.
85 static void InvalidateMaps(Code* stub); 85 static void InvalidateMaps(Code* stub);
86 86
87 // Clear the inline cache to initial state. 87 // Clear the inline cache to initial state.
88 static void Clear(Isolate* isolate, Address address, 88 static void Clear(Isolate* isolate, Address address,
89 ConstantPoolArray* constant_pool); 89 ConstantPoolArray* constant_pool);
90 90
91 #ifdef DEBUG 91 #if DCHECK_IS_ON
92 bool IsLoadStub() const { 92 bool IsLoadStub() const {
93 return target()->is_load_stub() || target()->is_keyed_load_stub(); 93 return target()->is_load_stub() || target()->is_keyed_load_stub();
94 } 94 }
95 95
96 bool IsStoreStub() const { 96 bool IsStoreStub() const {
97 return target()->is_store_stub() || target()->is_keyed_store_stub(); 97 return target()->is_store_stub() || target()->is_keyed_store_stub();
98 } 98 }
99 99
100 bool IsCallStub() const { return target()->is_call_stub(); } 100 bool IsCallStub() const { return target()->is_call_stub(); }
101 #endif 101 #endif
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 761
762 // Support functions for interceptor handlers. 762 // Support functions for interceptor handlers.
763 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); 763 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly);
764 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); 764 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor);
765 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); 765 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor);
766 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); 766 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor);
767 } 767 }
768 } // namespace v8::internal 768 } // namespace v8::internal
769 769
770 #endif // V8_IC_H_ 770 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698