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

Side by Side Diff: src/assembler.h

Issue 9455088: Remove static initializers in v8. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Florian's comments. Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/assembler.cc » ('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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 explicit AssemblerBase(Isolate* isolate); 60 explicit AssemblerBase(Isolate* isolate);
61 61
62 Isolate* isolate() const { return isolate_; } 62 Isolate* isolate() const { return isolate_; }
63 int jit_cookie() { return jit_cookie_; } 63 int jit_cookie() { return jit_cookie_; }
64 64
65 private: 65 private:
66 Isolate* isolate_; 66 Isolate* isolate_;
67 int jit_cookie_; 67 int jit_cookie_;
68 }; 68 };
69 69
70 // -----------------------------------------------------------------------------
71 // Common double constants.
72
73 class DoubleConstant: public AllStatic {
74 public:
75 static const double min_int;
76 static const double one_half;
77 static const double minus_zero;
78 static const double zero;
79 static const double uint8_max_value;
80 static const double negative_infinity;
81 static const double canonical_non_hole_nan;
82 static const double the_hole_nan;
83 };
84
85 70
86 // ----------------------------------------------------------------------------- 71 // -----------------------------------------------------------------------------
87 // Labels represent pc locations; they are typically jump or call targets. 72 // Labels represent pc locations; they are typically jump or call targets.
88 // After declaration, a label can be freely used to denote known or (yet) 73 // After declaration, a label can be freely used to denote known or (yet)
89 // unknown pc location. Assembler::bind() is used to bind a label to the 74 // unknown pc location. Assembler::bind() is used to bind a label to the
90 // current pc. A label can be bound only once. 75 // current pc. A label can be bound only once.
91 76
92 class Label BASE_EMBEDDED { 77 class Label BASE_EMBEDDED {
93 public: 78 public:
94 enum Distance { 79 enum Distance {
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 public: 867 public:
883 NullCallWrapper() { } 868 NullCallWrapper() { }
884 virtual ~NullCallWrapper() { } 869 virtual ~NullCallWrapper() { }
885 virtual void BeforeCall(int call_size) const { } 870 virtual void BeforeCall(int call_size) const { }
886 virtual void AfterCall() const { } 871 virtual void AfterCall() const { }
887 }; 872 };
888 873
889 } } // namespace v8::internal 874 } } // namespace v8::internal
890 875
891 #endif // V8_ASSEMBLER_H_ 876 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698