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
This commit is contained in:
parent
2c9c94bd32
commit
d525ddbed1
@ -338,10 +338,6 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const int FullCodeGenerator::kMaxBackEdgeWeight = 127;
|
|
||||||
const int FullCodeGenerator::kBackEdgeDistanceUnit = 142;
|
|
||||||
|
|
||||||
|
|
||||||
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
||||||
Label* back_edge_target) {
|
Label* back_edge_target) {
|
||||||
Comment cmnt(masm_, "[ Stack check");
|
Comment cmnt(masm_, "[ Stack check");
|
||||||
|
@ -113,8 +113,20 @@ class FullCodeGenerator: public AstVisitor {
|
|||||||
|
|
||||||
Zone* zone() const { return zone_; }
|
Zone* zone() const { return zone_; }
|
||||||
|
|
||||||
static const int kMaxBackEdgeWeight;
|
static const int kMaxBackEdgeWeight = 127;
|
||||||
static const int kBackEdgeDistanceUnit;
|
|
||||||
|
#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:
|
private:
|
||||||
class Breakable;
|
class Breakable;
|
||||||
|
@ -325,10 +325,6 @@ void FullCodeGenerator::EmitProfilingCounterReset() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const int FullCodeGenerator::kMaxBackEdgeWeight = 127;
|
|
||||||
const int FullCodeGenerator::kBackEdgeDistanceUnit = 100;
|
|
||||||
|
|
||||||
|
|
||||||
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
||||||
Label* back_edge_target) {
|
Label* back_edge_target) {
|
||||||
Comment cmnt(masm_, "[ Stack check");
|
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,
|
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
||||||
Label* back_edge_target) {
|
Label* back_edge_target) {
|
||||||
// The generated code is used in Deoptimizer::PatchStackCheckCodeAt so we need
|
// 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,
|
void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
|
||||||
Label* back_edge_target) {
|
Label* back_edge_target) {
|
||||||
Comment cmnt(masm_, "[ Stack check");
|
Comment cmnt(masm_, "[ Stack check");
|
||||||
|
Loading…
Reference in New Issue
Block a user