This repository was archived by the owner on Mar 13, 2018. It is now read-only.
File tree 2 files changed +10
-9
lines changed
2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- /*
16
- This is a harness so that the ChangeSummary benchmarks can be run and profiled
17
- using V8's d8 shell. Doing requires modifying V8's src/object-observe.js to
18
- expose full delivery of all pending changes to observers via
19
- Object.deliverAllChangesRecords(). This is *not* a part of the spec and is
20
- just a hack to allow profiling the benchmarks from d8.
21
- */
15
+ // Flags: --allow-natives-syntax
22
16
23
17
var console = {
24
18
log : print
Original file line number Diff line number Diff line change 621
621
622
622
var runningMicrotaskCheckpoint = false ;
623
623
624
- var hasDebugForceFullDelivery = typeof Object . deliverAllChangeRecords == 'function' ;
624
+ var hasDebugForceFullDelivery = hasObserve && ( function ( ) {
625
+ try {
626
+ eval ( '%RunMicrotasks()' ) ;
627
+ return true ;
628
+ } catch ( ex ) {
629
+ return false ;
630
+ }
631
+ } ) ( ) ;
625
632
626
633
global . Platform = global . Platform || { } ;
627
634
630
637
return ;
631
638
632
639
if ( hasDebugForceFullDelivery ) {
633
- Object . deliverAllChangeRecords ( ) ;
640
+ eval ( '%RunMicrotasks()' ) ;
634
641
return ;
635
642
}
636
643
You can’t perform that action at this time.
0 commit comments