| OLD | NEW |
| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 | 101 |
| 102 // Returns the map to use for caching stubs for a given object. | 102 // Returns the map to use for caching stubs for a given object. |
| 103 // This method should not be called with undefined or null. | 103 // This method should not be called with undefined or null. |
| 104 static inline Map* GetCodeCacheMapForObject(Object* object); | 104 static inline Map* GetCodeCacheMapForObject(Object* object); |
| 105 | 105 |
| 106 protected: | 106 protected: |
| 107 Address fp() const { return fp_; } | 107 Address fp() const { return fp_; } |
| 108 Address pc() const { return *pc_address_; } | 108 Address pc() const { return *pc_address_; } |
| 109 | 109 |
| 110 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 110 // Computes the address in the original code when the code running is | 111 // Computes the address in the original code when the code running is |
| 111 // containing break points (calls to DebugBreakXXX builtins). | 112 // containing break points (calls to DebugBreakXXX builtins). |
| 112 Address OriginalCodeAddress(); | 113 Address OriginalCodeAddress(); |
| 114 #endif |
| 113 | 115 |
| 114 // Set the call-site target. | 116 // Set the call-site target. |
| 115 void set_target(Code* code) { SetTargetAtAddress(address(), code); } | 117 void set_target(Code* code) { SetTargetAtAddress(address(), code); } |
| 116 | 118 |
| 117 #ifdef DEBUG | 119 #ifdef DEBUG |
| 118 static void TraceIC(const char* type, | 120 static void TraceIC(const char* type, |
| 119 Handle<String> name, | 121 Handle<String> name, |
| 120 State old_state, | 122 State old_state, |
| 121 Code* new_target); | 123 Code* new_target); |
| 122 #endif | 124 #endif |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 362 } |
| 361 | 363 |
| 362 static void Clear(Address address, Code* target); | 364 static void Clear(Address address, Code* target); |
| 363 friend class IC; | 365 friend class IC; |
| 364 }; | 366 }; |
| 365 | 367 |
| 366 | 368 |
| 367 } } // namespace v8::internal | 369 } } // namespace v8::internal |
| 368 | 370 |
| 369 #endif // V8_IC_H_ | 371 #endif // V8_IC_H_ |
| OLD | NEW |