OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 6991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7002 case Translation::BEGIN: | 7002 case Translation::BEGIN: |
7003 UNREACHABLE(); | 7003 UNREACHABLE(); |
7004 break; | 7004 break; |
7005 | 7005 |
7006 case Translation::FRAME: { | 7006 case Translation::FRAME: { |
7007 int ast_id = iterator.Next(); | 7007 int ast_id = iterator.Next(); |
7008 int function_id = iterator.Next(); | 7008 int function_id = iterator.Next(); |
7009 JSFunction* function = | 7009 JSFunction* function = |
7010 JSFunction::cast(LiteralArray()->get(function_id)); | 7010 JSFunction::cast(LiteralArray()->get(function_id)); |
7011 unsigned height = iterator.Next(); | 7011 unsigned height = iterator.Next(); |
7012 PrintF(out, "{ast_id=%d, \nfunction=", ast_id); | 7012 PrintF(out, "{ast_id=%d, function=", ast_id); |
7013 function->PrintName(out); | 7013 function->PrintName(out); |
7014 PrintF(out, ", height=%u}", height); | 7014 PrintF(out, ", height=%u}", height); |
7015 break; | 7015 break; |
7016 } | 7016 } |
7017 | 7017 |
7018 case Translation::DUPLICATE: | 7018 case Translation::DUPLICATE: |
7019 break; | 7019 break; |
7020 | 7020 |
7021 case Translation::REGISTER: { | 7021 case Translation::REGISTER: { |
7022 int reg_code = iterator.Next(); | 7022 int reg_code = iterator.Next(); |
(...skipping 4576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11599 if (break_point_objects()->IsUndefined()) return 0; | 11599 if (break_point_objects()->IsUndefined()) return 0; |
11600 // Single break point. | 11600 // Single break point. |
11601 if (!break_point_objects()->IsFixedArray()) return 1; | 11601 if (!break_point_objects()->IsFixedArray()) return 1; |
11602 // Multiple break points. | 11602 // Multiple break points. |
11603 return FixedArray::cast(break_point_objects())->length(); | 11603 return FixedArray::cast(break_point_objects())->length(); |
11604 } | 11604 } |
11605 #endif | 11605 #endif |
11606 | 11606 |
11607 | 11607 |
11608 } } // namespace v8::internal | 11608 } } // namespace v8::internal |
OLD | NEW |