Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Side by Side Diff: src/debug.cc

Issue 6624085: [Isolates] Merge 7051:7083 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/extensions/experimental/break-iterator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 int break_points_hit_count = 0; 1037 int break_points_hit_count = 0;
1038 Handle<JSArray> break_points_hit = FACTORY->NewJSArray(1); 1038 Handle<JSArray> break_points_hit = FACTORY->NewJSArray(1);
1039 1039
1040 // If there are multiple break points they are in a FixedArray. 1040 // If there are multiple break points they are in a FixedArray.
1041 ASSERT(!break_point_objects->IsUndefined()); 1041 ASSERT(!break_point_objects->IsUndefined());
1042 if (break_point_objects->IsFixedArray()) { 1042 if (break_point_objects->IsFixedArray()) {
1043 Handle<FixedArray> array(FixedArray::cast(*break_point_objects)); 1043 Handle<FixedArray> array(FixedArray::cast(*break_point_objects));
1044 for (int i = 0; i < array->length(); i++) { 1044 for (int i = 0; i < array->length(); i++) {
1045 Handle<Object> o(array->get(i)); 1045 Handle<Object> o(array->get(i));
1046 if (CheckBreakPoint(o)) { 1046 if (CheckBreakPoint(o)) {
1047 SetElement(break_points_hit, break_points_hit_count++, o); 1047 SetElement(break_points_hit,
1048 break_points_hit_count++,
1049 o,
1050 kNonStrictMode);
1048 } 1051 }
1049 } 1052 }
1050 } else { 1053 } else {
1051 if (CheckBreakPoint(break_point_objects)) { 1054 if (CheckBreakPoint(break_point_objects)) {
1052 SetElement(break_points_hit, 1055 SetElement(break_points_hit,
1053 break_points_hit_count++, 1056 break_points_hit_count++,
1054 break_point_objects); 1057 break_point_objects,
1058 kNonStrictMode);
1055 } 1059 }
1056 } 1060 }
1057 1061
1058 // Return undefined if no break points were triggered. 1062 // Return undefined if no break points were triggered.
1059 if (break_points_hit_count == 0) { 1063 if (break_points_hit_count == 0) {
1060 return FACTORY->undefined_value(); 1064 return FACTORY->undefined_value();
1061 } 1065 }
1062 return break_points_hit; 1066 return break_points_hit;
1063 } 1067 }
1064 1068
(...skipping 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after
3162 { 3166 {
3163 Locker locker; 3167 Locker locker;
3164 Isolate::Current()->debugger()->CallMessageDispatchHandler(); 3168 Isolate::Current()->debugger()->CallMessageDispatchHandler();
3165 } 3169 }
3166 } 3170 }
3167 } 3171 }
3168 3172
3169 #endif // ENABLE_DEBUGGER_SUPPORT 3173 #endif // ENABLE_DEBUGGER_SUPPORT
3170 3174
3171 } } // namespace v8::internal 3175 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/extensions/experimental/break-iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698