| 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 8207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8218 int function_id = iterator.Next(); | 8218 int function_id = iterator.Next(); |
| 8219 JSFunction* function = | 8219 JSFunction* function = |
| 8220 JSFunction::cast(LiteralArray()->get(function_id)); | 8220 JSFunction::cast(LiteralArray()->get(function_id)); |
| 8221 unsigned height = iterator.Next(); | 8221 unsigned height = iterator.Next(); |
| 8222 PrintF(out, "{ast_id=%d, function=", ast_id); | 8222 PrintF(out, "{ast_id=%d, function=", ast_id); |
| 8223 function->PrintName(out); | 8223 function->PrintName(out); |
| 8224 PrintF(out, ", height=%u}", height); | 8224 PrintF(out, ", height=%u}", height); |
| 8225 break; | 8225 break; |
| 8226 } | 8226 } |
| 8227 | 8227 |
| 8228 case Translation::ARGUMENTS_ADAPTOR_FRAME: { | 8228 case Translation::ARGUMENTS_ADAPTOR_FRAME: |
| 8229 case Translation::CONSTRUCT_STUB_FRAME: { |
| 8230 int function_id = iterator.Next(); |
| 8231 JSFunction* function = |
| 8232 JSFunction::cast(LiteralArray()->get(function_id)); |
| 8229 unsigned height = iterator.Next(); | 8233 unsigned height = iterator.Next(); |
| 8230 PrintF(out, "{arguments adaptor, height=%d}", height); | 8234 PrintF(out, "{function="); |
| 8235 function->PrintName(out); |
| 8236 PrintF(out, ", height=%u}", height); |
| 8231 break; | 8237 break; |
| 8232 } | 8238 } |
| 8233 | 8239 |
| 8234 case Translation::DUPLICATE: | 8240 case Translation::DUPLICATE: |
| 8235 break; | 8241 break; |
| 8236 | 8242 |
| 8237 case Translation::REGISTER: { | 8243 case Translation::REGISTER: { |
| 8238 int reg_code = iterator.Next(); | 8244 int reg_code = iterator.Next(); |
| 8239 PrintF(out, "{input=%s}", converter.NameOfCPURegister(reg_code)); | 8245 PrintF(out, "{input=%s}", converter.NameOfCPURegister(reg_code)); |
| 8240 break; | 8246 break; |
| (...skipping 4782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13023 if (break_point_objects()->IsUndefined()) return 0; | 13029 if (break_point_objects()->IsUndefined()) return 0; |
| 13024 // Single break point. | 13030 // Single break point. |
| 13025 if (!break_point_objects()->IsFixedArray()) return 1; | 13031 if (!break_point_objects()->IsFixedArray()) return 1; |
| 13026 // Multiple break points. | 13032 // Multiple break points. |
| 13027 return FixedArray::cast(break_point_objects())->length(); | 13033 return FixedArray::cast(break_point_objects())->length(); |
| 13028 } | 13034 } |
| 13029 #endif // ENABLE_DEBUGGER_SUPPORT | 13035 #endif // ENABLE_DEBUGGER_SUPPORT |
| 13030 | 13036 |
| 13031 | 13037 |
| 13032 } } // namespace v8::internal | 13038 } } // namespace v8::internal |
| OLD | NEW |