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

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

Issue 1321343004: Desugar %DefaultConstructorCallSuper partially in parser. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/runtime/runtime-object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-classes.cc
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
index 6678cdd6f5ed8b535c1515769234512670dae76c..5f098148664ff86253602185809b89e27becb2a0 100644
--- a/src/runtime/runtime-classes.cc
+++ b/src/runtime/runtime-classes.cc
@@ -517,16 +517,9 @@ RUNTIME_FUNCTION(Runtime_DefaultConstructorCallSuper) {
HandleScope scope(isolate);
DCHECK(args.length() == 2);
CONVERT_ARG_HANDLE_CHECKED(JSFunction, original_constructor, 0);
- CONVERT_ARG_HANDLE_CHECKED(JSFunction, actual_constructor, 1);
+ CONVERT_ARG_HANDLE_CHECKED(JSFunction, super_constructor, 1);
JavaScriptFrameIterator it(isolate);
- // Prepare the callee to the super call. The super constructor is stored as
- // the prototype of the constructor we are currently executing.
- Handle<Object> super_constructor;
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
- isolate, super_constructor,
- Runtime::GetPrototype(isolate, actual_constructor));
-
// Determine the actual arguments passed to the function.
int argument_count = 0;
base::SmartArrayPointer<Handle<Object>> arguments =
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698