OLD | NEW |
---|---|
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1006 int break_points_hit_count = 0; | 1006 int break_points_hit_count = 0; |
1007 Handle<JSArray> break_points_hit = Factory::NewJSArray(1); | 1007 Handle<JSArray> break_points_hit = Factory::NewJSArray(1); |
1008 | 1008 |
1009 // If there are multiple break points they are in a FixedArray. | 1009 // If there are multiple break points they are in a FixedArray. |
1010 ASSERT(!break_point_objects->IsUndefined()); | 1010 ASSERT(!break_point_objects->IsUndefined()); |
1011 if (break_point_objects->IsFixedArray()) { | 1011 if (break_point_objects->IsFixedArray()) { |
1012 Handle<FixedArray> array(FixedArray::cast(*break_point_objects)); | 1012 Handle<FixedArray> array(FixedArray::cast(*break_point_objects)); |
1013 for (int i = 0; i < array->length(); i++) { | 1013 for (int i = 0; i < array->length(); i++) { |
1014 Handle<Object> o(array->get(i)); | 1014 Handle<Object> o(array->get(i)); |
1015 if (CheckBreakPoint(o)) { | 1015 if (CheckBreakPoint(o)) { |
1016 SetElement(break_points_hit, break_points_hit_count++, o); | 1016 SetElement(break_points_hit, |
1017 break_points_hit_count++, | |
1018 o, | |
1019 kNonStrictMode); | |
Martin Maly
2011/03/03 06:07:56
Debugger code, not using strict mode.
| |
1017 } | 1020 } |
1018 } | 1021 } |
1019 } else { | 1022 } else { |
1020 if (CheckBreakPoint(break_point_objects)) { | 1023 if (CheckBreakPoint(break_point_objects)) { |
1021 SetElement(break_points_hit, | 1024 SetElement(break_points_hit, |
1022 break_points_hit_count++, | 1025 break_points_hit_count++, |
1023 break_point_objects); | 1026 break_point_objects, |
1027 kNonStrictMode); | |
1024 } | 1028 } |
1025 } | 1029 } |
1026 | 1030 |
1027 // Return undefined if no break points were triggered. | 1031 // Return undefined if no break points were triggered. |
1028 if (break_points_hit_count == 0) { | 1032 if (break_points_hit_count == 0) { |
1029 return Factory::undefined_value(); | 1033 return Factory::undefined_value(); |
1030 } | 1034 } |
1031 return break_points_hit; | 1035 return break_points_hit; |
1032 } | 1036 } |
1033 | 1037 |
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3076 { | 3080 { |
3077 Locker locker; | 3081 Locker locker; |
3078 Debugger::CallMessageDispatchHandler(); | 3082 Debugger::CallMessageDispatchHandler(); |
3079 } | 3083 } |
3080 } | 3084 } |
3081 } | 3085 } |
3082 | 3086 |
3083 #endif // ENABLE_DEBUGGER_SUPPORT | 3087 #endif // ENABLE_DEBUGGER_SUPPORT |
3084 | 3088 |
3085 } } // namespace v8::internal | 3089 } } // namespace v8::internal |
OLD | NEW |