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

Side by Side Diff: src/mirror-debugger.js

Issue 12422019: ES6 symbols: prevent reflection and proxy APIs from leaking symbols (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Deal with Object.observe as well Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/object-observe.js » ('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 2006-2012 the V8 project authors. All rights reserved. 1 // Copyright 2006-2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 // Find kind and limit and allocate array for the result 631 // Find kind and limit and allocate array for the result
632 kind = kind || PropertyKind.Named | PropertyKind.Indexed; 632 kind = kind || PropertyKind.Named | PropertyKind.Indexed;
633 633
634 var propertyNames; 634 var propertyNames;
635 var elementNames; 635 var elementNames;
636 var total = 0; 636 var total = 0;
637 637
638 // Find all the named properties. 638 // Find all the named properties.
639 if (kind & PropertyKind.Named) { 639 if (kind & PropertyKind.Named) {
640 // Get the local property names. 640 // Get the local property names.
641 propertyNames = %GetLocalPropertyNames(this.value_); 641 propertyNames = %GetLocalPropertyNames(this.value_, true);
642 total += propertyNames.length; 642 total += propertyNames.length;
643 643
644 // Get names for named interceptor properties if any. 644 // Get names for named interceptor properties if any.
645 if (this.hasNamedInterceptor() && (kind & PropertyKind.Named)) { 645 if (this.hasNamedInterceptor() && (kind & PropertyKind.Named)) {
646 var namedInterceptorNames = 646 var namedInterceptorNames =
647 %GetNamedInterceptorPropertyNames(this.value_); 647 %GetNamedInterceptorPropertyNames(this.value_);
648 if (namedInterceptorNames) { 648 if (namedInterceptorNames) {
649 propertyNames = propertyNames.concat(namedInterceptorNames); 649 propertyNames = propertyNames.concat(namedInterceptorNames);
650 total += namedInterceptorNames.length; 650 total += namedInterceptorNames.length;
651 } 651 }
(...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after
2617 } 2617 }
2618 if (!NUMBER_IS_FINITE(value)) { 2618 if (!NUMBER_IS_FINITE(value)) {
2619 if (value > 0) { 2619 if (value > 0) {
2620 return 'Infinity'; 2620 return 'Infinity';
2621 } else { 2621 } else {
2622 return '-Infinity'; 2622 return '-Infinity';
2623 } 2623 }
2624 } 2624 }
2625 return value; 2625 return value;
2626 } 2626 }
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/object-observe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698