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

Side by Side Diff: src/objects.h

Issue 390004: Fix warnings on Win64. (Closed)
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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2772 matching lines...) Expand 10 before | Expand all | Expand 10 after
2783 inline byte* entry(); 2783 inline byte* entry();
2784 2784
2785 // Returns true if pc is inside this object's instructions. 2785 // Returns true if pc is inside this object's instructions.
2786 inline bool contains(byte* pc); 2786 inline bool contains(byte* pc);
2787 2787
2788 // Returns the address of the scope information. 2788 // Returns the address of the scope information.
2789 inline byte* sinfo_start(); 2789 inline byte* sinfo_start();
2790 2790
2791 // Relocate the code by delta bytes. Called to signal that this code 2791 // Relocate the code by delta bytes. Called to signal that this code
2792 // object has been moved by delta bytes. 2792 // object has been moved by delta bytes.
2793 void Relocate(int delta); 2793 void Relocate(intptr_t delta);
2794 2794
2795 // Migrate code described by desc. 2795 // Migrate code described by desc.
2796 void CopyFrom(const CodeDesc& desc); 2796 void CopyFrom(const CodeDesc& desc);
2797 2797
2798 // Returns the object size for a given body and sinfo size (Used for 2798 // Returns the object size for a given body and sinfo size (Used for
2799 // allocation). 2799 // allocation).
2800 static int SizeFor(int body_size, int sinfo_size) { 2800 static int SizeFor(int body_size, int sinfo_size) {
2801 ASSERT_SIZE_TAG_ALIGNED(body_size); 2801 ASSERT_SIZE_TAG_ALIGNED(body_size);
2802 ASSERT_SIZE_TAG_ALIGNED(sinfo_size); 2802 ASSERT_SIZE_TAG_ALIGNED(sinfo_size);
2803 return RoundUp(kHeaderSize + body_size + sinfo_size, kCodeAlignment); 2803 return RoundUp(kHeaderSize + body_size + sinfo_size, kCodeAlignment);
(...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after
5022 } else { 5022 } else {
5023 value &= ~(1 << bit_position); 5023 value &= ~(1 << bit_position);
5024 } 5024 }
5025 return value; 5025 return value;
5026 } 5026 }
5027 }; 5027 };
5028 5028
5029 } } // namespace v8::internal 5029 } } // namespace v8::internal
5030 5030
5031 #endif // V8_OBJECTS_H_ 5031 #endif // V8_OBJECTS_H_
OLDNEW
« src/api.cc ('K') | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698