Commit d525ddbe authored by yangguo@chromium.org's avatar yangguo@chromium.org

Fix static initializer check.

R=jkummerow@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10824013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12187 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2c9c94bd
......@@ -338,10 +338,6 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
}
const int FullCodeGenerator::kMaxBackEdgeWeight = 127;
const int FullCodeGenerator::kBackEdgeDistanceUnit = 142;
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
Label* back_edge_target) {
Comment cmnt(masm_, "[ Stack check");
......
......@@ -113,8 +113,20 @@ class FullCodeGenerator: public AstVisitor {
Zone* zone() const { return zone_; }
static const int kMaxBackEdgeWeight;
static const int kBackEdgeDistanceUnit;
static const int kMaxBackEdgeWeight = 127;
#if V8_TARGET_ARCH_IA32
static const int kBackEdgeDistanceUnit = 100;
#elif V8_TARGET_ARCH_X64
static const int kBackEdgeDistanceUnit = 162;
#elif V8_TARGET_ARCH_ARM
static const int kBackEdgeDistanceUnit = 142;
#elif V8_TARGET_ARCH_MIPS
static const int kBackEdgeDistanceUnit = 142;
#else
#error Unsupported target architecture.
#endif
private:
class Breakable;
......
......@@ -325,10 +325,6 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
}
const int FullCodeGenerator::kMaxBackEdgeWeight = 127;
const int FullCodeGenerator::kBackEdgeDistanceUnit = 100;
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
Label* back_edge_target) {
Comment cmnt(masm_, "[ Stack check");
......
......@@ -340,10 +340,6 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
}
const int FullCodeGenerator::kMaxBackEdgeWeight = 127;
const int FullCodeGenerator::kBackEdgeDistanceUnit = 142;
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
Label* back_edge_target) {
// The generated code is used in Deoptimizer::PatchStackCheckCodeAt so we need
......
......@@ -321,10 +321,6 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
}
const int FullCodeGenerator::kMaxBackEdgeWeight = 127;
const int FullCodeGenerator::kBackEdgeDistanceUnit = 162;
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
Label* back_edge_target) {
Comment cmnt(masm_, "[ Stack check");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment