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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/debug.h" | 9 #include "src/debug.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 | 460 |
461 | 461 |
462 RUNTIME_FUNCTION(Runtime_GetCallerJSFunction) { | 462 RUNTIME_FUNCTION(Runtime_GetCallerJSFunction) { |
463 SealHandleScope shs(isolate); | 463 SealHandleScope shs(isolate); |
464 StackFrameIterator it(isolate); | 464 StackFrameIterator it(isolate); |
465 RUNTIME_ASSERT(it.frame()->type() == StackFrame::STUB); | 465 RUNTIME_ASSERT(it.frame()->type() == StackFrame::STUB); |
466 it.Advance(); | 466 it.Advance(); |
467 RUNTIME_ASSERT(it.frame()->type() == StackFrame::JAVA_SCRIPT); | 467 RUNTIME_ASSERT(it.frame()->type() == StackFrame::JAVA_SCRIPT); |
468 return JavaScriptFrame::cast(it.frame())->function(); | 468 return JavaScriptFrame::cast(it.frame())->function(); |
469 } | 469 } |
| 470 |
| 471 |
| 472 RUNTIME_FUNCTION(Runtime_GetCodeStubExportsObject) { |
| 473 HandleScope shs(isolate); |
| 474 return isolate->heap()->code_stub_exports_object(); |
| 475 } |
| 476 |
470 } // namespace internal | 477 } // namespace internal |
471 } // namespace v8 | 478 } // namespace v8 |
OLD | NEW |