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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 } | 284 } |
285 static inline bool IsConstructCall(Mode mode) { | 285 static inline bool IsConstructCall(Mode mode) { |
286 return mode == CONSTRUCT_CALL; | 286 return mode == CONSTRUCT_CALL; |
287 } | 287 } |
288 static inline bool IsCodeTarget(Mode mode) { | 288 static inline bool IsCodeTarget(Mode mode) { |
289 return mode <= LAST_CODE_ENUM; | 289 return mode <= LAST_CODE_ENUM; |
290 } | 290 } |
291 static inline bool IsEmbeddedObject(Mode mode) { | 291 static inline bool IsEmbeddedObject(Mode mode) { |
292 return mode == EMBEDDED_OBJECT; | 292 return mode == EMBEDDED_OBJECT; |
293 } | 293 } |
| 294 static inline bool IsRuntimeEntry(Mode mode) { |
| 295 return mode == RUNTIME_ENTRY; |
| 296 } |
294 // Is the relocation mode affected by GC? | 297 // Is the relocation mode affected by GC? |
295 static inline bool IsGCRelocMode(Mode mode) { | 298 static inline bool IsGCRelocMode(Mode mode) { |
296 return mode <= LAST_GCED_ENUM; | 299 return mode <= LAST_GCED_ENUM; |
297 } | 300 } |
298 static inline bool IsJSReturn(Mode mode) { | 301 static inline bool IsJSReturn(Mode mode) { |
299 return mode == JS_RETURN; | 302 return mode == JS_RETURN; |
300 } | 303 } |
301 static inline bool IsComment(Mode mode) { | 304 static inline bool IsComment(Mode mode) { |
302 return mode == COMMENT; | 305 return mode == COMMENT; |
303 } | 306 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 bool IsCodedSpecially(); | 347 bool IsCodedSpecially(); |
345 | 348 |
346 // Read/modify the code target in the branch/call instruction | 349 // Read/modify the code target in the branch/call instruction |
347 // this relocation applies to; | 350 // this relocation applies to; |
348 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY | 351 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY |
349 INLINE(Address target_address()); | 352 INLINE(Address target_address()); |
350 INLINE(void set_target_address(Address target, | 353 INLINE(void set_target_address(Address target, |
351 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); | 354 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); |
352 INLINE(Object* target_object()); | 355 INLINE(Object* target_object()); |
353 INLINE(Handle<Object> target_object_handle(Assembler* origin)); | 356 INLINE(Handle<Object> target_object_handle(Assembler* origin)); |
| 357 INLINE(Address target_runtime_entry(Assembler* origin)); |
354 INLINE(Object** target_object_address()); | 358 INLINE(Object** target_object_address()); |
355 INLINE(void set_target_object(Object* target, | 359 INLINE(void set_target_object(Object* target, |
356 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); | 360 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); |
357 INLINE(JSGlobalPropertyCell* target_cell()); | 361 INLINE(JSGlobalPropertyCell* target_cell()); |
358 INLINE(Handle<JSGlobalPropertyCell> target_cell_handle()); | 362 INLINE(Handle<JSGlobalPropertyCell> target_cell_handle()); |
359 INLINE(void set_target_cell(JSGlobalPropertyCell* cell, | 363 INLINE(void set_target_cell(JSGlobalPropertyCell* cell, |
360 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); | 364 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); |
361 INLINE(Code* code_age_stub()); | 365 INLINE(Code* code_age_stub()); |
362 INLINE(void set_code_age_stub(Code* stub)); | 366 INLINE(void set_code_age_stub(Code* stub)); |
363 | 367 |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 public: | 975 public: |
972 NullCallWrapper() { } | 976 NullCallWrapper() { } |
973 virtual ~NullCallWrapper() { } | 977 virtual ~NullCallWrapper() { } |
974 virtual void BeforeCall(int call_size) const { } | 978 virtual void BeforeCall(int call_size) const { } |
975 virtual void AfterCall() const { } | 979 virtual void AfterCall() const { } |
976 }; | 980 }; |
977 | 981 |
978 } } // namespace v8::internal | 982 } } // namespace v8::internal |
979 | 983 |
980 #endif // V8_ASSEMBLER_H_ | 984 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |