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