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

Unified Diff: src/runtime/runtime-internal.cc

Issue 1316933002: [es6] Initial steps towards a correct implementation of IsCallable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: src/runtime/runtime-internal.cc
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc
index 236a79c7919a9dbe038a30ad6037758b04e67957..a7c727cfdc652a3fd79991d89e474510b691ec54 100644
--- a/src/runtime/runtime-internal.cc
+++ b/src/runtime/runtime-internal.cc
@@ -10,8 +10,6 @@
#include "src/debug/debug.h"
#include "src/frames-inl.h"
#include "src/messages.h"
-#include "src/parser.h"
-#include "src/prettyprinter.h"
namespace v8 {
namespace internal {
@@ -257,30 +255,6 @@ RUNTIME_FUNCTION(Runtime_CollectStackTrace) {
}
-RUNTIME_FUNCTION(Runtime_RenderCallSite) {
- HandleScope scope(isolate);
- DCHECK(args.length() == 0);
- MessageLocation location;
- if (!isolate->ComputeLocation(&location)) {
- return isolate->heap()->empty_string();
- }
-
- Zone zone;
- base::SmartPointer<ParseInfo> info(
- location.function()->shared()->is_function()
- ? new ParseInfo(&zone, location.function())
- : new ParseInfo(&zone, location.script()));
-
- if (!Parser::ParseStatic(info.get())) {
- isolate->clear_pending_exception();
- return isolate->heap()->empty_string();
- }
- CallPrinter printer(isolate, &zone);
- const char* string = printer.Print(info->literal(), location.start_pos());
- return *isolate->factory()->NewStringFromAsciiChecked(string);
-}
-
-
RUNTIME_FUNCTION(Runtime_MessageGetStartPosition) {
SealHandleScope shs(isolate);
DCHECK(args.length() == 1);

Powered by Google App Engine
This is Rietveld 408576698