OLD | NEW |
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Determines which map must be used for keeping the code stub. | 120 // Determines which map must be used for keeping the code stub. |
121 // These methods should not be called with undefined or null. | 121 // These methods should not be called with undefined or null. |
122 static inline InlineCacheHolderFlag GetCodeCacheForObject(Object* object, | 122 static inline InlineCacheHolderFlag GetCodeCacheForObject(Object* object, |
123 JSObject* holder); | 123 JSObject* holder); |
124 static inline InlineCacheHolderFlag GetCodeCacheForObject(JSObject* object, | 124 static inline InlineCacheHolderFlag GetCodeCacheForObject(JSObject* object, |
125 JSObject* holder); | 125 JSObject* holder); |
126 static inline Map* GetCodeCacheMap(Object* object, | 126 static inline JSObject* GetCodeCacheHolder(Object* object, |
127 InlineCacheHolderFlag holder); | 127 InlineCacheHolderFlag holder); |
128 | 128 |
129 protected: | 129 protected: |
130 Address fp() const { return fp_; } | 130 Address fp() const { return fp_; } |
131 Address pc() const { return *pc_address_; } | 131 Address pc() const { return *pc_address_; } |
132 | 132 |
133 #ifdef ENABLE_DEBUGGER_SUPPORT | 133 #ifdef ENABLE_DEBUGGER_SUPPORT |
134 // 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 |
135 // containing break points (calls to DebugBreakXXX builtins). | 135 // containing break points (calls to DebugBreakXXX builtins). |
136 Address OriginalCodeAddress(); | 136 Address OriginalCodeAddress(); |
137 #endif | 137 #endif |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 static const char* GetName(TypeInfo type_info); | 506 static const char* GetName(TypeInfo type_info); |
507 | 507 |
508 static State ToState(TypeInfo type_info); | 508 static State ToState(TypeInfo type_info); |
509 | 509 |
510 static TypeInfo GetTypeInfo(Object* left, Object* right); | 510 static TypeInfo GetTypeInfo(Object* left, Object* right); |
511 }; | 511 }; |
512 | 512 |
513 } } // namespace v8::internal | 513 } } // namespace v8::internal |
514 | 514 |
515 #endif // V8_IC_H_ | 515 #endif // V8_IC_H_ |
OLD | NEW |