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

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

Issue 1909433003: Remove support for Object.observe (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 years, 8 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-collections.cc ('k') | src/runtime/runtime-observe.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 "src/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/ast/prettyprinter.h" 8 #include "src/ast/prettyprinter.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 HandleScope scope(isolate); 496 HandleScope scope(isolate);
497 DCHECK_EQ(0, args.length()); 497 DCHECK_EQ(0, args.length());
498 std::stringstream stats_stream; 498 std::stringstream stats_stream;
499 isolate->counters()->runtime_call_stats()->Print(stats_stream); 499 isolate->counters()->runtime_call_stats()->Print(stats_stream);
500 Handle<String> result = 500 Handle<String> result =
501 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str()); 501 isolate->factory()->NewStringFromAsciiChecked(stats_stream.str().c_str());
502 isolate->counters()->runtime_call_stats()->Reset(); 502 isolate->counters()->runtime_call_stats()->Reset();
503 return *result; 503 return *result;
504 } 504 }
505 505
506 RUNTIME_FUNCTION(Runtime_EnqueueMicrotask) {
507 HandleScope scope(isolate);
508 DCHECK(args.length() == 1);
509 CONVERT_ARG_HANDLE_CHECKED(JSFunction, microtask, 0);
510 isolate->EnqueueMicrotask(microtask);
511 return isolate->heap()->undefined_value();
512 }
513
514 RUNTIME_FUNCTION(Runtime_RunMicrotasks) {
515 HandleScope scope(isolate);
516 DCHECK(args.length() == 0);
517 isolate->RunMicrotasks();
518 return isolate->heap()->undefined_value();
519 }
506 } // namespace internal 520 } // namespace internal
507 } // namespace v8 521 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-collections.cc ('k') | src/runtime/runtime-observe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698