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

Side by Side Diff: src/ic.h

Issue 2801018: This change allows generating call-stubs for objects with normal (non-fast) o... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } else { 110 } else {
111 ASSERT(!SlowIsContextual()); 111 ASSERT(!SlowIsContextual());
112 return false; 112 return false;
113 } 113 }
114 } 114 }
115 115
116 bool SlowIsContextual() { 116 bool SlowIsContextual() {
117 return ComputeMode() == RelocInfo::CODE_TARGET_CONTEXT; 117 return ComputeMode() == RelocInfo::CODE_TARGET_CONTEXT;
118 } 118 }
119 119
120 // Returns the map to use for caching stubs for a given object. 120 // Determines which map must be used for keeping the code stub.
121 // This method should not be called with undefined or null. 121 // These methods should not be called with undefined or null.
122 static inline Map* GetCodeCacheMapForObject(Object* object); 122 static inline InlineCacheHolderFlag GetCodeCacheForObject(Object* object,
123 JSObject* holder);
124 static inline InlineCacheHolderFlag GetCodeCacheForObject(JSObject* object,
125 JSObject* holder);
126 static inline Map* GetCodeCacheMap(Object* object,
127 InlineCacheHolderFlag holder);
123 128
124 protected: 129 protected:
125 Address fp() const { return fp_; } 130 Address fp() const { return fp_; }
126 Address pc() const { return *pc_address_; } 131 Address pc() const { return *pc_address_; }
127 132
128 #ifdef ENABLE_DEBUGGER_SUPPORT 133 #ifdef ENABLE_DEBUGGER_SUPPORT
129 // Computes the address in the original code when the code running is 134 // Computes the address in the original code when the code running is
130 // containing break points (calls to DebugBreakXXX builtins). 135 // containing break points (calls to DebugBreakXXX builtins).
131 Address OriginalCodeAddress(); 136 Address OriginalCodeAddress();
132 #endif 137 #endif
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 static const char* GetName(TypeInfo type_info); 494 static const char* GetName(TypeInfo type_info);
490 495
491 static State ToState(TypeInfo type_info); 496 static State ToState(TypeInfo type_info);
492 497
493 static TypeInfo GetTypeInfo(Object* left, Object* right); 498 static TypeInfo GetTypeInfo(Object* left, Object* right);
494 }; 499 };
495 500
496 } } // namespace v8::internal 501 } } // namespace v8::internal
497 502
498 #endif // V8_IC_H_ 503 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698