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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 } | 309 } |
310 static inline bool IsConstructCall(Mode mode) { | 310 static inline bool IsConstructCall(Mode mode) { |
311 return mode == CONSTRUCT_CALL; | 311 return mode == CONSTRUCT_CALL; |
312 } | 312 } |
313 static inline bool IsCodeTarget(Mode mode) { | 313 static inline bool IsCodeTarget(Mode mode) { |
314 return mode <= LAST_CODE_ENUM; | 314 return mode <= LAST_CODE_ENUM; |
315 } | 315 } |
316 static inline bool IsEmbeddedObject(Mode mode) { | 316 static inline bool IsEmbeddedObject(Mode mode) { |
317 return mode == EMBEDDED_OBJECT; | 317 return mode == EMBEDDED_OBJECT; |
318 } | 318 } |
319 static inline bool IsRuntimeEntry(Mode mode) { | |
320 return mode == RUNTIME_ENTRY; | |
321 } | |
322 // Is the relocation mode affected by GC? | 319 // Is the relocation mode affected by GC? |
323 static inline bool IsGCRelocMode(Mode mode) { | 320 static inline bool IsGCRelocMode(Mode mode) { |
324 return mode <= LAST_GCED_ENUM; | 321 return mode <= LAST_GCED_ENUM; |
325 } | 322 } |
326 static inline bool IsJSReturn(Mode mode) { | 323 static inline bool IsJSReturn(Mode mode) { |
327 return mode == JS_RETURN; | 324 return mode == JS_RETURN; |
328 } | 325 } |
329 static inline bool IsComment(Mode mode) { | 326 static inline bool IsComment(Mode mode) { |
330 return mode == COMMENT; | 327 return mode == COMMENT; |
331 } | 328 } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 // this relocation applies to; | 372 // this relocation applies to; |
376 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY | 373 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY |
377 INLINE(Address target_address()); | 374 INLINE(Address target_address()); |
378 INLINE(void set_target_address(Address target, | 375 INLINE(void set_target_address(Address target, |
379 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); | 376 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); |
380 INLINE(Object* target_object()); | 377 INLINE(Object* target_object()); |
381 INLINE(Handle<Object> target_object_handle(Assembler* origin)); | 378 INLINE(Handle<Object> target_object_handle(Assembler* origin)); |
382 INLINE(Object** target_object_address()); | 379 INLINE(Object** target_object_address()); |
383 INLINE(void set_target_object(Object* target, | 380 INLINE(void set_target_object(Object* target, |
384 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); | 381 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); |
385 INLINE(Address target_runtime_entry(Assembler* origin)); | |
386 INLINE(void set_target_runtime_entry(Address target, | |
387 WriteBarrierMode mode = | |
388 UPDATE_WRITE_BARRIER)); | |
389 INLINE(JSGlobalPropertyCell* target_cell()); | 382 INLINE(JSGlobalPropertyCell* target_cell()); |
390 INLINE(Handle<JSGlobalPropertyCell> target_cell_handle()); | 383 INLINE(Handle<JSGlobalPropertyCell> target_cell_handle()); |
391 INLINE(void set_target_cell(JSGlobalPropertyCell* cell, | 384 INLINE(void set_target_cell(JSGlobalPropertyCell* cell, |
392 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); | 385 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); |
393 INLINE(Code* code_age_stub()); | 386 INLINE(Code* code_age_stub()); |
394 INLINE(void set_code_age_stub(Code* stub)); | 387 INLINE(void set_code_age_stub(Code* stub)); |
395 | 388 |
396 // Read the address of the word containing the target_address in an | 389 // Read the address of the word containing the target_address in an |
397 // instruction stream. What this means exactly is architecture-independent. | 390 // instruction stream. What this means exactly is architecture-independent. |
398 // The only architecture-independent user of this function is the serializer. | 391 // The only architecture-independent user of this function is the serializer. |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 public: | 1016 public: |
1024 NullCallWrapper() { } | 1017 NullCallWrapper() { } |
1025 virtual ~NullCallWrapper() { } | 1018 virtual ~NullCallWrapper() { } |
1026 virtual void BeforeCall(int call_size) const { } | 1019 virtual void BeforeCall(int call_size) const { } |
1027 virtual void AfterCall() const { } | 1020 virtual void AfterCall() const { } |
1028 }; | 1021 }; |
1029 | 1022 |
1030 } } // namespace v8::internal | 1023 } } // namespace v8::internal |
1031 | 1024 |
1032 #endif // V8_ASSEMBLER_H_ | 1025 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |