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

Unified Diff: src/objects.cc

Issue 330303002: Add machinery to support arguments escaping to safe builtins (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 6 years, 6 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/objects.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 63fb13be99739d6344726f3882629bf44d955240..7ee58ba02d7c7440ff0b644c00c83a51ab9cdcc9 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -9877,6 +9877,15 @@ void SharedFunctionInfo::TrimOptimizedCodeMap(int shrink_by) {
}
+bool SharedFunctionInfo::CanHandleArgumentsSafely() {
+ if (!HasBuiltinFunctionId()) return false;
+ switch (builtin_function_id()) {
+ default: return false;
+ }
+ UNREACHABLE();
+}
+
+
void JSObject::OptimizeAsPrototype(Handle<JSObject> object) {
if (object->IsGlobalObject()) return;
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698