Chromium Code Reviews| Index: src/full-codegen.cc |
| =================================================================== |
| --- src/full-codegen.cc (revision 10090) |
| +++ src/full-codegen.cc (working copy) |
| @@ -362,7 +362,7 @@ |
| } |
| -void FullCodeGenerator::PrepareForBailoutForId(int id, State state) { |
| +void FullCodeGenerator::PrepareForBailoutForId(unsigned id, State state) { |
| // There's no need to prepare this code for bailouts from already optimized |
| // code or code that can't be optimized. |
| if (!FLAG_deopt || !info_->HasDeoptimizationSupport()) return; |
| @@ -383,10 +383,10 @@ |
| } |
| -void FullCodeGenerator::RecordStackCheck(int ast_id) { |
| +void FullCodeGenerator::RecordStackCheck(unsigned ast_id) { |
| // The pc offset does not need to be encoded and packed together with a |
| // state. |
| - BailoutEntry entry = { ast_id, masm_->pc_offset() }; |
| + BailoutEntry entry = { ast_id, static_cast<unsigned>(masm_->pc_offset()) }; |
|
Steven
2011/11/30 17:50:42
The static_cast is ok. All the stack check table e
|
| stack_checks_.Add(entry); |
| } |