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

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

Issue 344011: * Fix new snapshot code on ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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
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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 432
433 // GetCode emits any pending (non-emitted) code and fills the descriptor 433 // GetCode emits any pending (non-emitted) code and fills the descriptor
434 // desc. GetCode() is idempotent; it returns the same result if no other 434 // desc. GetCode() is idempotent; it returns the same result if no other
435 // Assembler functions are invoked in between GetCode() calls. 435 // Assembler functions are invoked in between GetCode() calls.
436 void GetCode(CodeDesc* desc); 436 void GetCode(CodeDesc* desc);
437 437
438 // Read/Modify the code target in the branch/call instruction at pc. 438 // Read/Modify the code target in the branch/call instruction at pc.
439 inline static Address target_address_at(Address pc); 439 inline static Address target_address_at(Address pc);
440 inline static void set_target_address_at(Address pc, Address target); 440 inline static void set_target_address_at(Address pc, Address target);
441 441
442 // This sets the branch destination (which is in the instruction on x86).
443 inline static void set_target_at(Address instruction_payload,
444 Address target) {
445 set_target_address_at(instruction_payload, target);
446 }
447
442 static const int kCallTargetSize = kPointerSize; 448 static const int kCallTargetSize = kPointerSize;
443 449
444 // Distance between the address of the code target in the call instruction 450 // Distance between the address of the code target in the call instruction
445 // and the return address 451 // and the return address
446 static const int kCallTargetAddressOffset = kPointerSize; 452 static const int kCallTargetAddressOffset = kPointerSize;
447 // Distance between start of patched return sequence and the emitted address 453 // Distance between start of patched return sequence and the emitted address
448 // to jump to. 454 // to jump to.
449 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32. 455 static const int kPatchReturnSequenceAddressOffset = 1; // JMP imm32.
450 456
451 457
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 private: 883 private:
878 Assembler* assembler_; 884 Assembler* assembler_;
879 #ifdef DEBUG 885 #ifdef DEBUG
880 int space_before_; 886 int space_before_;
881 #endif 887 #endif
882 }; 888 };
883 889
884 } } // namespace v8::internal 890 } } // namespace v8::internal
885 891
886 #endif // V8_IA32_ASSEMBLER_IA32_H_ 892 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« src/arm/assembler-arm.h ('K') | « src/arm/assembler-arm-inl.h ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698