| OLD | NEW |
| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 // The back edge table consists of a length (in number of entries) | 369 // The back edge table consists of a length (in number of entries) |
| 370 // field, and then a sequence of entries. Each entry is a pair of AST id | 370 // field, and then a sequence of entries. Each entry is a pair of AST id |
| 371 // and code-relative pc offset. | 371 // and code-relative pc offset. |
| 372 masm()->Align(kIntSize); | 372 masm()->Align(kIntSize); |
| 373 unsigned offset = masm()->pc_offset(); | 373 unsigned offset = masm()->pc_offset(); |
| 374 unsigned length = back_edges_.length(); | 374 unsigned length = back_edges_.length(); |
| 375 __ dd(length); | 375 __ dd(length); |
| 376 for (unsigned i = 0; i < length; ++i) { | 376 for (unsigned i = 0; i < length; ++i) { |
| 377 __ dd(back_edges_[i].id.ToInt()); | 377 __ dd(back_edges_[i].id.ToInt()); |
| 378 __ dd(back_edges_[i].pc); | 378 __ dd(back_edges_[i].pc); |
| 379 __ db(back_edges_[i].loop_depth); | 379 __ dd(back_edges_[i].loop_depth); |
| 380 } | 380 } |
| 381 return offset; | 381 return offset; |
| 382 } | 382 } |
| 383 | 383 |
| 384 | 384 |
| 385 void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) { | 385 void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) { |
| 386 // Fill in the deoptimization information. | 386 // Fill in the deoptimization information. |
| 387 ASSERT(info_->HasDeoptimizationSupport() || bailout_entries_.is_empty()); | 387 ASSERT(info_->HasDeoptimizationSupport() || bailout_entries_.is_empty()); |
| 388 if (!info_->HasDeoptimizationSupport()) return; | 388 if (!info_->HasDeoptimizationSupport()) return; |
| 389 int length = bailout_entries_.length(); | 389 int length = bailout_entries_.length(); |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1608 } | 1608 } |
| 1609 | 1609 |
| 1610 return false; | 1610 return false; |
| 1611 } | 1611 } |
| 1612 | 1612 |
| 1613 | 1613 |
| 1614 #undef __ | 1614 #undef __ |
| 1615 | 1615 |
| 1616 | 1616 |
| 1617 } } // namespace v8::internal | 1617 } } // namespace v8::internal |
| OLD | NEW |