| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 } | 428 } |
| 429 static inline bool IsConstructCall(Mode mode) { | 429 static inline bool IsConstructCall(Mode mode) { |
| 430 return mode == CONSTRUCT_CALL; | 430 return mode == CONSTRUCT_CALL; |
| 431 } | 431 } |
| 432 static inline bool IsCodeTarget(Mode mode) { | 432 static inline bool IsCodeTarget(Mode mode) { |
| 433 return mode <= LAST_CODE_ENUM; | 433 return mode <= LAST_CODE_ENUM; |
| 434 } | 434 } |
| 435 static inline bool IsEmbeddedObject(Mode mode) { | 435 static inline bool IsEmbeddedObject(Mode mode) { |
| 436 return mode == EMBEDDED_OBJECT; | 436 return mode == EMBEDDED_OBJECT; |
| 437 } | 437 } |
| 438 static inline bool IsCell(Mode mode) { return mode == CELL; } |
| 438 static inline bool IsRuntimeEntry(Mode mode) { | 439 static inline bool IsRuntimeEntry(Mode mode) { |
| 439 return mode == RUNTIME_ENTRY; | 440 return mode == RUNTIME_ENTRY; |
| 440 } | 441 } |
| 441 // Is the relocation mode affected by GC? | 442 // Is the relocation mode affected by GC? |
| 442 static inline bool IsGCRelocMode(Mode mode) { | 443 static inline bool IsGCRelocMode(Mode mode) { |
| 443 return mode <= LAST_GCED_ENUM; | 444 return mode <= LAST_GCED_ENUM; |
| 444 } | 445 } |
| 445 static inline bool IsJSReturn(Mode mode) { | 446 static inline bool IsJSReturn(Mode mode) { |
| 446 return mode == JS_RETURN; | 447 return mode == JS_RETURN; |
| 447 } | 448 } |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 NullCallWrapper() { } | 1163 NullCallWrapper() { } |
| 1163 virtual ~NullCallWrapper() { } | 1164 virtual ~NullCallWrapper() { } |
| 1164 virtual void BeforeCall(int call_size) const { } | 1165 virtual void BeforeCall(int call_size) const { } |
| 1165 virtual void AfterCall() const { } | 1166 virtual void AfterCall() const { } |
| 1166 }; | 1167 }; |
| 1167 | 1168 |
| 1168 | 1169 |
| 1169 } } // namespace v8::internal | 1170 } } // namespace v8::internal |
| 1170 | 1171 |
| 1171 #endif // V8_ASSEMBLER_H_ | 1172 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |