| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 8285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8296 // No break point. | 8296 // No break point. |
| 8297 if (break_point_objects()->IsUndefined()) return 0; | 8297 if (break_point_objects()->IsUndefined()) return 0; |
| 8298 // Single beak point. | 8298 // Single beak point. |
| 8299 if (!break_point_objects()->IsFixedArray()) return 1; | 8299 if (!break_point_objects()->IsFixedArray()) return 1; |
| 8300 // Multiple break points. | 8300 // Multiple break points. |
| 8301 return FixedArray::cast(break_point_objects())->length(); | 8301 return FixedArray::cast(break_point_objects())->length(); |
| 8302 } | 8302 } |
| 8303 #endif | 8303 #endif |
| 8304 | 8304 |
| 8305 | 8305 |
| 8306 // BUG(555): This function is used to diagnose issue 555 from |
| 8307 // runtime.cc. We avoid inlining it by placing it here. |
| 8308 void CaptureInfoForIssue555( |
| 8309 bool is_bootstrapping, |
| 8310 AllocationSpace context_space, |
| 8311 Object* context, |
| 8312 Object* context_map, |
| 8313 int context_length, |
| 8314 Object* context_closure, |
| 8315 Object* context_fcontext, |
| 8316 Object* context_previous, |
| 8317 Object* context_extension, |
| 8318 Object* context_global, |
| 8319 AllocationSpace function_space, |
| 8320 Object* function, |
| 8321 bool runs_in_inner_context, |
| 8322 bool runs_in_outer_context) { |
| 8323 // Kill the virtual machine. |
| 8324 OS::Abort(); |
| 8325 } |
| 8326 |
| 8306 } } // namespace v8::internal | 8327 } } // namespace v8::internal |
| OLD | NEW |