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