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

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

Issue 1025453003: MIPS: Fix 'MIPS: Serializer: serialize internal references via object visitor.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. 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/arm64/assembler-arm64-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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 550 // This sets the internal reference at the pc.
551 inline static void deserialization_set_target_internal_reference_at( 551 inline static void deserialization_set_target_internal_reference_at(
552 Address pc, Address target); 552 Address pc, Address target,
553 RelocInfo::Mode mode = RelocInfo::INTERNAL_REFERENCE);
553 554
554 static const int kSpecialTargetSize = kPointerSize; 555 static const int kSpecialTargetSize = kPointerSize;
555 556
556 // Distance between the address of the code target in the call instruction 557 // Distance between the address of the code target in the call instruction
557 // and the return address 558 // and the return address
558 static const int kCallTargetAddressOffset = kPointerSize; 559 static const int kCallTargetAddressOffset = kPointerSize;
559 // Distance between start of patched return sequence and the emitted address 560 // Distance between start of patched return sequence and the emitted address
560 // to jump to. 561 // to jump to.
561 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. 562 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32.
562 563
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 private: 1439 private:
1439 Assembler* assembler_; 1440 Assembler* assembler_;
1440 #ifdef DEBUG 1441 #ifdef DEBUG
1441 int space_before_; 1442 int space_before_;
1442 #endif 1443 #endif
1443 }; 1444 };
1444 1445
1445 } } // namespace v8::internal 1446 } } // namespace v8::internal
1446 1447
1447 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1448 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64-inl.h ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698