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

Side by Side Diff: src/ia32/assembler-ia32.h

Issue 1005183006: Serializer: serialize internal references via object visitor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix compilation Created 5 years, 9 months 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
« no previous file with comments | « src/heap/objects-visiting-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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 // Return the code target address of the patch debug break slot 540 // Return the code target address of the patch debug break slot
541 inline static Address break_address_from_return_address(Address pc); 541 inline static Address break_address_from_return_address(Address pc);
542 542
543 // This sets the branch destination (which is in the instruction on x86). 543 // This sets the branch destination (which is in the instruction on x86).
544 // This is for calls and branches within generated code. 544 // This is for calls and branches within generated code.
545 inline static void deserialization_set_special_target_at( 545 inline static void deserialization_set_special_target_at(
546 Address instruction_payload, Code* code, Address target) { 546 Address instruction_payload, Code* code, Address target) {
547 set_target_address_at(instruction_payload, code, target); 547 set_target_address_at(instruction_payload, code, target);
548 } 548 }
549 549
550 // This sets the internal reference at the pc.
551 inline static void deserialization_set_target_internal_reference_at(
552 Address pc, Address target);
553
550 static const int kSpecialTargetSize = kPointerSize; 554 static const int kSpecialTargetSize = kPointerSize;
551 555
552 // Distance between the address of the code target in the call instruction 556 // Distance between the address of the code target in the call instruction
553 // and the return address 557 // and the return address
554 static const int kCallTargetAddressOffset = kPointerSize; 558 static const int kCallTargetAddressOffset = kPointerSize;
555 // Distance between start of patched return sequence and the emitted address 559 // Distance between start of patched return sequence and the emitted address
556 // to jump to. 560 // to jump to.
557 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. 561 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32.
558 562
559 // Distance between start of patched debug break slot and the emitted address 563 // Distance between start of patched debug break slot and the emitted address
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 private: 1438 private:
1435 Assembler* assembler_; 1439 Assembler* assembler_;
1436 #ifdef DEBUG 1440 #ifdef DEBUG
1437 int space_before_; 1441 int space_before_;
1438 #endif 1442 #endif
1439 }; 1443 };
1440 1444
1441 } } // namespace v8::internal 1445 } } // namespace v8::internal
1442 1446
1443 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1447 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698