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

Side by Side Diff: src/runtime/runtime-classes.cc

Issue 923443003: new classes: no longer experimental. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: One more rebase? Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 DCHECK(args.length() == 4); 407 DCHECK(args.length() == 4);
408 CONVERT_ARG_HANDLE_CHECKED(Object, receiver, 0); 408 CONVERT_ARG_HANDLE_CHECKED(Object, receiver, 0);
409 CONVERT_ARG_HANDLE_CHECKED(JSObject, home_object, 1); 409 CONVERT_ARG_HANDLE_CHECKED(JSObject, home_object, 1);
410 CONVERT_ARG_HANDLE_CHECKED(Object, key, 2); 410 CONVERT_ARG_HANDLE_CHECKED(Object, key, 2);
411 CONVERT_ARG_HANDLE_CHECKED(Object, value, 3); 411 CONVERT_ARG_HANDLE_CHECKED(Object, value, 3);
412 412
413 return StoreKeyedToSuper(isolate, home_object, receiver, key, value, SLOPPY); 413 return StoreKeyedToSuper(isolate, home_object, receiver, key, value, SLOPPY);
414 } 414 }
415 415
416 416
417 RUNTIME_FUNCTION(Runtime_HandleStepInForDerivedConstructors) {
418 HandleScope scope(isolate);
419 DCHECK(args.length() == 1);
420 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
421 Debug* debug = isolate->debug();
422 // Handle stepping into constructors if step into is active.
423 if (debug->StepInActive()) {
424 debug->HandleStepIn(function, Handle<Object>::null(), 0, true);
425 }
426 return *isolate->factory()->undefined_value();
427 }
428
429
417 RUNTIME_FUNCTION(RuntimeReference_DefaultConstructorCallSuper) { 430 RUNTIME_FUNCTION(RuntimeReference_DefaultConstructorCallSuper) {
418 UNREACHABLE(); 431 UNREACHABLE();
419 return nullptr; 432 return nullptr;
420 } 433 }
421 434
422 435
423 // TODO(dslomov): deprecated, will remove when experimenal classes is default. 436 // TODO(dslomov): deprecated, will remove when experimenal classes is default.
424 RUNTIME_FUNCTION(Runtime_DefaultConstructorSuperCall) { 437 RUNTIME_FUNCTION(Runtime_DefaultConstructorSuperCall) {
425 CHECK(!FLAG_experimental_classes); 438 CHECK(!FLAG_experimental_classes);
426 HandleScope scope(isolate); 439 HandleScope scope(isolate);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 } 475 }
463 476
464 Handle<Object> result; 477 Handle<Object> result;
465 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 478 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
466 isolate, result, 479 isolate, result,
467 Execution::Call(isolate, proto_function, receiver, argc, argv, false)); 480 Execution::Call(isolate, proto_function, receiver, argc, argv, false));
468 return *result; 481 return *result;
469 } 482 }
470 } 483 }
471 } // namespace v8::internal 484 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698