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

Unified Diff: src/top.h

Issue 8056: Add a workaround for a compiler gug in GCC 4.2.3. See issue 122 for details.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/top.h
===================================================================
--- src/top.h (revision 547)
+++ src/top.h (working copy)
@@ -294,10 +294,16 @@
};
+// TODO(122): If the GCC version is 4.2.0 or higher an additional field is added
+// to this class as a workarround for a bug in the generated code found with
+// GCC 4.2.3.
class SaveContext BASE_EMBEDDED {
public:
SaveContext() :
context_(Top::context()),
+#if __GNUC_VERSION__ >= 40200
+ dummy_(Top::context()),
+#endif
prev_(Top::save_context()) {
Top::set_save_context(this);
}
@@ -312,6 +318,9 @@
private:
Handle<Context> context_;
+#if __GNUC_VERSION__ >= 40200
+ Handle<Context> dummy_;
+#endif
SaveContext* prev_;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698