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

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

Issue 1135243004: [es6] Support super.property in eval and arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: i have no idea Created 5 years, 7 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-classes.cc
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
index 3dc3a244db441d7f4a996e22e56e79fca4b014b9..88e39cf02cacc0591dcbefcfe0f307f357c18614 100644
--- a/src/runtime/runtime-classes.cc
+++ b/src/runtime/runtime-classes.cc
@@ -463,5 +463,19 @@ RUNTIME_FUNCTION(Runtime_CallSuperWithSpread) {
UNIMPLEMENTED();
return nullptr;
}
+
+
+RUNTIME_FUNCTION(Runtime_LoadHomeObject) {
+ HandleScope scope(isolate);
+ DCHECK(args.length() == 1);
+ CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
+
+ Handle<Object> home_object;
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
+ isolate, home_object,
+ Object::GetProperty(function, isolate->factory()->home_object_symbol()));
+ DCHECK(home_object->IsJSReceiver());
+ return *home_object;
+}
}
} // namespace v8::internal
« src/ast-numbering.cc ('K') | « src/runtime/runtime.h ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698