Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: src/assembler.h

Issue 50413004: Removed RelocInfo::target_object_address() and reconstructed_obj_ptr_. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 bool IsCodedSpecially(); 383 bool IsCodedSpecially();
384 384
385 // Read/modify the code target in the branch/call instruction 385 // Read/modify the code target in the branch/call instruction
386 // this relocation applies to; 386 // this relocation applies to;
387 // can only be called if IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) 387 // can only be called if IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)
388 INLINE(Address target_address()); 388 INLINE(Address target_address());
389 INLINE(void set_target_address(Address target, 389 INLINE(void set_target_address(Address target,
390 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); 390 WriteBarrierMode mode = UPDATE_WRITE_BARRIER));
391 INLINE(Object* target_object()); 391 INLINE(Object* target_object());
392 INLINE(Handle<Object> target_object_handle(Assembler* origin)); 392 INLINE(Handle<Object> target_object_handle(Assembler* origin));
393 INLINE(Object** target_object_address());
394 INLINE(void set_target_object(Object* target, 393 INLINE(void set_target_object(Object* target,
395 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); 394 WriteBarrierMode mode = UPDATE_WRITE_BARRIER));
396 INLINE(Address target_runtime_entry(Assembler* origin)); 395 INLINE(Address target_runtime_entry(Assembler* origin));
397 INLINE(void set_target_runtime_entry(Address target, 396 INLINE(void set_target_runtime_entry(Address target,
398 WriteBarrierMode mode = 397 WriteBarrierMode mode =
399 UPDATE_WRITE_BARRIER)); 398 UPDATE_WRITE_BARRIER));
400 INLINE(Cell* target_cell()); 399 INLINE(Cell* target_cell());
401 INLINE(Handle<Cell> target_cell_handle()); 400 INLINE(Handle<Cell> target_cell_handle());
402 INLINE(void set_target_cell(Cell* cell, 401 INLINE(void set_target_cell(Cell* cell,
403 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); 402 WriteBarrierMode mode = UPDATE_WRITE_BARRIER));
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // to be relocated and not the address of the instruction 478 // to be relocated and not the address of the instruction
480 // referencing the constant pool entry (except when rmode_ == 479 // referencing the constant pool entry (except when rmode_ ==
481 // comment). 480 // comment).
482 byte* pc_; 481 byte* pc_;
483 Mode rmode_; 482 Mode rmode_;
484 union { 483 union {
485 intptr_t data_; 484 intptr_t data_;
486 double data64_; 485 double data64_;
487 }; 486 };
488 Code* host_; 487 Code* host_;
489 // Code and Embedded Object pointers on some platforms are stored split
490 // across two consecutive 32-bit instructions. Heap management
491 // routines expect to access these pointers indirectly. The following
492 // location provides a place for these pointers to exist naturally
493 // when accessed via the Iterator.
494 Object* reconstructed_obj_ptr_;
495 // External-reference pointers are also split across instruction-pairs 488 // External-reference pointers are also split across instruction-pairs
496 // on some platforms, but are accessed via indirect pointers. This location 489 // on some platforms, but are accessed via indirect pointers. This location
497 // provides a place for that pointer to exist naturally. Its address 490 // provides a place for that pointer to exist naturally. Its address
498 // is returned by RelocInfo::target_reference_address(). 491 // is returned by RelocInfo::target_reference_address().
499 Address reconstructed_adr_ptr_; 492 Address reconstructed_adr_ptr_;
500 friend class RelocIterator; 493 friend class RelocIterator;
501 }; 494 };
502 495
503 496
504 // RelocInfoWriter serializes a stream of relocation info. It writes towards 497 // RelocInfoWriter serializes a stream of relocation info. It writes towards
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 public: 1067 public:
1075 NullCallWrapper() { } 1068 NullCallWrapper() { }
1076 virtual ~NullCallWrapper() { } 1069 virtual ~NullCallWrapper() { }
1077 virtual void BeforeCall(int call_size) const { } 1070 virtual void BeforeCall(int call_size) const { }
1078 virtual void AfterCall() const { } 1071 virtual void AfterCall() const { }
1079 }; 1072 };
1080 1073
1081 } } // namespace v8::internal 1074 } } // namespace v8::internal
1082 1075
1083 #endif // V8_ASSEMBLER_H_ 1076 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698