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

Side by Side Diff: src/ic.h

Issue 115744: This patch much improves our tracking of whether function is... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 Address OriginalCodeAddress(); 113 Address OriginalCodeAddress();
114 #endif 114 #endif
115 115
116 // Set the call-site target. 116 // Set the call-site target.
117 void set_target(Code* code) { SetTargetAtAddress(address(), code); } 117 void set_target(Code* code) { SetTargetAtAddress(address(), code); }
118 118
119 #ifdef DEBUG 119 #ifdef DEBUG
120 static void TraceIC(const char* type, 120 static void TraceIC(const char* type,
121 Handle<String> name, 121 Handle<String> name,
122 State old_state, 122 State old_state,
123 Code* new_target); 123 Code* new_target,
124 const char* updated_from = "");
Kasper Lund 2009/05/25 09:45:42 updated_from -> extra_info?
124 #endif 125 #endif
125 126
126 static Failure* TypeError(const char* type, 127 static Failure* TypeError(const char* type,
127 Handle<Object> object, 128 Handle<Object> object,
128 Handle<String> name); 129 Handle<String> name);
129 static Failure* ReferenceError(const char* type, Handle<String> name); 130 static Failure* ReferenceError(const char* type, Handle<String> name);
130 131
131 // Access the target code for the given IC address. 132 // Access the target code for the given IC address.
132 static inline Code* GetTargetAtAddress(Address address); 133 static inline Code* GetTargetAtAddress(Address address);
133 static inline void SetTargetAtAddress(Address address, Code* target); 134 static inline void SetTargetAtAddress(Address address, Code* target);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 } 377 }
377 378
378 static void Clear(Address address, Code* target); 379 static void Clear(Address address, Code* target);
379 friend class IC; 380 friend class IC;
380 }; 381 };
381 382
382 383
383 } } // namespace v8::internal 384 } } // namespace v8::internal
384 385
385 #endif // V8_IC_H_ 386 #endif // V8_IC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698