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

Side by Side Diff: src/assembler.h

Issue 54823002: Make snapshots reproducible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments only. 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 429
430 // Read/modify the address of a call instruction. This is used to relocate 430 // Read/modify the address of a call instruction. This is used to relocate
431 // the break points where straight-line code is patched with a call 431 // the break points where straight-line code is patched with a call
432 // instruction. 432 // instruction.
433 INLINE(Address call_address()); 433 INLINE(Address call_address());
434 INLINE(void set_call_address(Address target)); 434 INLINE(void set_call_address(Address target));
435 INLINE(Object* call_object()); 435 INLINE(Object* call_object());
436 INLINE(void set_call_object(Object* target)); 436 INLINE(void set_call_object(Object* target));
437 INLINE(Object** call_object_address()); 437 INLINE(Object** call_object_address());
438 438
439 // Wipe out a relocation to a fixed value, used for making snapshots
440 // reproducible.
441 INLINE(void WipeOut());
442
439 template<typename StaticVisitor> inline void Visit(Heap* heap); 443 template<typename StaticVisitor> inline void Visit(Heap* heap);
440 inline void Visit(Isolate* isolate, ObjectVisitor* v); 444 inline void Visit(Isolate* isolate, ObjectVisitor* v);
441 445
442 // Patch the code with some other code. 446 // Patch the code with some other code.
443 void PatchCode(byte* instructions, int instruction_count); 447 void PatchCode(byte* instructions, int instruction_count);
444 448
445 // Patch the code with a call. 449 // Patch the code with a call.
446 void PatchCodeWithCall(Address target, int guard_bytes); 450 void PatchCodeWithCall(Address target, int guard_bytes);
447 451
448 // Check whether this return sequence has been patched 452 // Check whether this return sequence has been patched
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 public: 1078 public:
1075 NullCallWrapper() { } 1079 NullCallWrapper() { }
1076 virtual ~NullCallWrapper() { } 1080 virtual ~NullCallWrapper() { }
1077 virtual void BeforeCall(int call_size) const { } 1081 virtual void BeforeCall(int call_size) const { }
1078 virtual void AfterCall() const { } 1082 virtual void AfterCall() const { }
1079 }; 1083 };
1080 1084
1081 } } // namespace v8::internal 1085 } } // namespace v8::internal
1082 1086
1083 #endif // V8_ASSEMBLER_H_ 1087 #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