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

Side by Side Diff: src/full-codegen.h

Issue 10824013: Fix static initializer check. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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/full-codegen-arm.cc ('k') | src/ia32/full-codegen-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 switch (state) { 106 switch (state) {
107 case NO_REGISTERS: return "NO_REGISTERS"; 107 case NO_REGISTERS: return "NO_REGISTERS";
108 case TOS_REG: return "TOS_REG"; 108 case TOS_REG: return "TOS_REG";
109 } 109 }
110 UNREACHABLE(); 110 UNREACHABLE();
111 return NULL; 111 return NULL;
112 } 112 }
113 113
114 Zone* zone() const { return zone_; } 114 Zone* zone() const { return zone_; }
115 115
116 static const int kMaxBackEdgeWeight; 116 static const int kMaxBackEdgeWeight = 127;
117 static const int kBackEdgeDistanceUnit; 117
118 #if V8_TARGET_ARCH_IA32
119 static const int kBackEdgeDistanceUnit = 100;
120 #elif V8_TARGET_ARCH_X64
121 static const int kBackEdgeDistanceUnit = 162;
122 #elif V8_TARGET_ARCH_ARM
123 static const int kBackEdgeDistanceUnit = 142;
124 #elif V8_TARGET_ARCH_MIPS
125 static const int kBackEdgeDistanceUnit = 142;
126 #else
127 #error Unsupported target architecture.
128 #endif
129
118 130
119 private: 131 private:
120 class Breakable; 132 class Breakable;
121 class Iteration; 133 class Iteration;
122 134
123 class TestContext; 135 class TestContext;
124 136
125 class NestedStatement BASE_EMBEDDED { 137 class NestedStatement BASE_EMBEDDED {
126 public: 138 public:
127 explicit NestedStatement(FullCodeGenerator* codegen) : codegen_(codegen) { 139 explicit NestedStatement(FullCodeGenerator* codegen) : codegen_(codegen) {
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 } 832 }
821 833
822 private: 834 private:
823 Zone* zone_; 835 Zone* zone_;
824 }; 836 };
825 837
826 838
827 } } // namespace v8::internal 839 } } // namespace v8::internal
828 840
829 #endif // V8_FULL_CODEGEN_H_ 841 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698