| 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.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/debug/debug-evaluate.h" | 9 #include "src/debug/debug-evaluate.h" |
| 10 #include "src/debug/debug-frames.h" | 10 #include "src/debug/debug-frames.h" |
| (...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 return *isolate->factory()->NewJSArrayWithElements(result); | 1442 return *isolate->factory()->NewJSArrayWithElements(result); |
| 1443 } | 1443 } |
| 1444 | 1444 |
| 1445 | 1445 |
| 1446 // Find the effective prototype object as returned by __proto__. | 1446 // Find the effective prototype object as returned by __proto__. |
| 1447 // args[0]: the object to find the prototype for. | 1447 // args[0]: the object to find the prototype for. |
| 1448 RUNTIME_FUNCTION(Runtime_DebugGetPrototype) { | 1448 RUNTIME_FUNCTION(Runtime_DebugGetPrototype) { |
| 1449 HandleScope shs(isolate); | 1449 HandleScope shs(isolate); |
| 1450 DCHECK(args.length() == 1); | 1450 DCHECK(args.length() == 1); |
| 1451 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); | 1451 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| 1452 return *Object::GetPrototypeSkipHiddenPrototypes(isolate, obj); | 1452 return *Object::GetPrototype(isolate, obj); |
| 1453 } | 1453 } |
| 1454 | 1454 |
| 1455 | 1455 |
| 1456 // Patches script source (should be called upon BeforeCompile event). | 1456 // Patches script source (should be called upon BeforeCompile event). |
| 1457 RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) { | 1457 RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) { |
| 1458 HandleScope scope(isolate); | 1458 HandleScope scope(isolate); |
| 1459 DCHECK(args.length() == 2); | 1459 DCHECK(args.length() == 2); |
| 1460 | 1460 |
| 1461 CONVERT_ARG_HANDLE_CHECKED(JSValue, script_wrapper, 0); | 1461 CONVERT_ARG_HANDLE_CHECKED(JSValue, script_wrapper, 0); |
| 1462 CONVERT_ARG_HANDLE_CHECKED(String, source, 1); | 1462 CONVERT_ARG_HANDLE_CHECKED(String, source, 1); |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 return *isolate->factory()->undefined_value(); | 1735 return *isolate->factory()->undefined_value(); |
| 1736 } | 1736 } |
| 1737 | 1737 |
| 1738 | 1738 |
| 1739 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 1739 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
| 1740 UNIMPLEMENTED(); | 1740 UNIMPLEMENTED(); |
| 1741 return NULL; | 1741 return NULL; |
| 1742 } | 1742 } |
| 1743 } // namespace internal | 1743 } // namespace internal |
| 1744 } // namespace v8 | 1744 } // namespace v8 |
| OLD | NEW |