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

Unified Diff: src/deoptimizer.h

Issue 1173343006: Replace OFFSET_OF with offsetof as far as possible. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed typing chaos on ARM. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/base/macros.h ('k') | src/global-handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.h
diff --git a/src/deoptimizer.h b/src/deoptimizer.h
index 591505fd459483570740ab1bd501d718942befc4..27665522bbdb0e922563a0211b34e3e811e6d977 100644
--- a/src/deoptimizer.h
+++ b/src/deoptimizer.h
@@ -896,23 +896,19 @@ class FrameDescription {
}
static int frame_size_offset() {
- return OFFSET_OF(FrameDescription, frame_size_);
+ return offsetof(FrameDescription, frame_size_);
}
- static int pc_offset() {
- return OFFSET_OF(FrameDescription, pc_);
- }
+ static int pc_offset() { return offsetof(FrameDescription, pc_); }
- static int state_offset() {
- return OFFSET_OF(FrameDescription, state_);
- }
+ static int state_offset() { return offsetof(FrameDescription, state_); }
static int continuation_offset() {
- return OFFSET_OF(FrameDescription, continuation_);
+ return offsetof(FrameDescription, continuation_);
}
static int frame_content_offset() {
- return OFFSET_OF(FrameDescription, frame_content_);
+ return offsetof(FrameDescription, frame_content_);
}
private:
« no previous file with comments | « src/base/macros.h ('k') | src/global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698