OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/debug/debug-evaluate.h" | 8 #include "src/debug/debug-evaluate.h" |
9 #include "src/debug/debug-frames.h" | 9 #include "src/debug/debug-frames.h" |
10 #include "src/debug/debug-scopes.h" | 10 #include "src/debug/debug-scopes.h" |
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1189 instances->set(i, *wrapper); | 1189 instances->set(i, *wrapper); |
1190 } | 1190 } |
1191 | 1191 |
1192 // Return result as a JS array. | 1192 // Return result as a JS array. |
1193 return *isolate->factory()->NewJSArrayWithElements(instances); | 1193 return *isolate->factory()->NewJSArrayWithElements(instances); |
1194 } | 1194 } |
1195 | 1195 |
1196 static bool HasInPrototypeChainIgnoringProxies(Isolate* isolate, | 1196 static bool HasInPrototypeChainIgnoringProxies(Isolate* isolate, |
1197 JSObject* object, | 1197 JSObject* object, |
1198 Object* proto) { | 1198 Object* proto) { |
1199 PrototypeIterator iter(isolate, object, PrototypeIterator::START_AT_RECEIVER); | 1199 PrototypeIterator iter(isolate, object, kStartAtReceiver); |
1200 while (true) { | 1200 while (true) { |
1201 iter.AdvanceIgnoringProxies(); | 1201 iter.AdvanceIgnoringProxies(); |
1202 if (iter.IsAtEnd()) return false; | 1202 if (iter.IsAtEnd()) return false; |
1203 if (iter.GetCurrent() == proto) return true; | 1203 if (iter.GetCurrent() == proto) return true; |
1204 } | 1204 } |
1205 } | 1205 } |
1206 | 1206 |
1207 | 1207 |
1208 // Scan the heap for objects with direct references to an object | 1208 // Scan the heap for objects with direct references to an object |
1209 // args[0]: the object to find references to | 1209 // args[0]: the object to find references to |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1743 return Smi::FromInt(isolate->debug()->is_active()); | 1743 return Smi::FromInt(isolate->debug()->is_active()); |
1744 } | 1744 } |
1745 | 1745 |
1746 | 1746 |
1747 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 1747 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
1748 UNIMPLEMENTED(); | 1748 UNIMPLEMENTED(); |
1749 return NULL; | 1749 return NULL; |
1750 } | 1750 } |
1751 } // namespace internal | 1751 } // namespace internal |
1752 } // namespace v8 | 1752 } // namespace v8 |
OLD | NEW |