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

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

Issue 847913005: move HandleApiCall builtin to assembly (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 11 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
« no previous file with comments | « src/runtime/runtime.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-api.cc
diff --git a/src/runtime/runtime-api.cc b/src/runtime/runtime-api.cc
index 740832e9c97712148215734396d824d896122e91..ab44226edf29832dee4c5422ff6635dafffc93c5 100644
--- a/src/runtime/runtime-api.cc
+++ b/src/runtime/runtime-api.cc
@@ -123,5 +123,17 @@ RUNTIME_FUNCTION(Runtime_AddPropertyForTemplate) {
Runtime::DefineObjectProperty(object, key, value, attributes));
return *result;
}
+
+
+RUNTIME_FUNCTION(Runtime_ThrowIllegalInvocation) {
+ HandleScope scope(isolate);
+ RUNTIME_ASSERT(args.length() == 1);
+ CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
+ {
+ Handle<Object> args[1] = {function};
+ THROW_NEW_ERROR_RETURN_FAILURE(
+ isolate, NewTypeError("illegal_invocation", HandleVector(args, 1)));
+ }
+}
}
} // namespace v8::internal
« no previous file with comments | « src/runtime/runtime.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698