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; } | |
439 static inline bool IsRuntimeEntry(Mode mode) { | 438 static inline bool IsRuntimeEntry(Mode mode) { |
440 return mode == RUNTIME_ENTRY; | 439 return mode == RUNTIME_ENTRY; |
441 } | 440 } |
442 // Is the relocation mode affected by GC? | 441 // Is the relocation mode affected by GC? |
443 static inline bool IsGCRelocMode(Mode mode) { | 442 static inline bool IsGCRelocMode(Mode mode) { |
444 return mode <= LAST_GCED_ENUM; | 443 return mode <= LAST_GCED_ENUM; |
445 } | 444 } |
446 static inline bool IsJSReturn(Mode mode) { | 445 static inline bool IsJSReturn(Mode mode) { |
447 return mode == JS_RETURN; | 446 return mode == JS_RETURN; |
448 } | 447 } |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 NullCallWrapper() { } | 1162 NullCallWrapper() { } |
1164 virtual ~NullCallWrapper() { } | 1163 virtual ~NullCallWrapper() { } |
1165 virtual void BeforeCall(int call_size) const { } | 1164 virtual void BeforeCall(int call_size) const { } |
1166 virtual void AfterCall() const { } | 1165 virtual void AfterCall() const { } |
1167 }; | 1166 }; |
1168 | 1167 |
1169 | 1168 |
1170 } } // namespace v8::internal | 1169 } } // namespace v8::internal |
1171 | 1170 |
1172 #endif // V8_ASSEMBLER_H_ | 1171 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |