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

Side by Side Diff: src/v8natives.js

Issue 7703005: Prune some internal objects' prototypes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reuse original PropertyDescriptor approach. Created 9 years, 4 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/string.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 this.hasEnumerable_ = false; 455 this.hasEnumerable_ = false;
456 this.configurable_ = false; 456 this.configurable_ = false;
457 this.hasConfigurable_ = false; 457 this.hasConfigurable_ = false;
458 this.get_ = void 0; 458 this.get_ = void 0;
459 this.hasGetter_ = false; 459 this.hasGetter_ = false;
460 this.set_ = void 0; 460 this.set_ = void 0;
461 this.hasSetter_ = false; 461 this.hasSetter_ = false;
462 } 462 }
463 463
464 PropertyDescriptor.prototype.__proto__ = null; 464 PropertyDescriptor.prototype.__proto__ = null;
465
465 PropertyDescriptor.prototype.toString = function() { 466 PropertyDescriptor.prototype.toString = function() {
466 return "[object PropertyDescriptor]"; 467 return "[object PropertyDescriptor]";
467 }; 468 };
468 469
469 PropertyDescriptor.prototype.setValue = function(value) { 470 PropertyDescriptor.prototype.setValue = function(value) {
470 this.value_ = value; 471 this.value_ = value;
471 this.hasValue_ = true; 472 this.hasValue_ = true;
472 } 473 }
473 474
474 475
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 // ---------------------------------------------------------------------------- 1538 // ----------------------------------------------------------------------------
1538 1539
1539 function SetupFunction() { 1540 function SetupFunction() {
1540 InstallFunctions($Function.prototype, DONT_ENUM, $Array( 1541 InstallFunctions($Function.prototype, DONT_ENUM, $Array(
1541 "bind", FunctionBind, 1542 "bind", FunctionBind,
1542 "toString", FunctionToString 1543 "toString", FunctionToString
1543 )); 1544 ));
1544 } 1545 }
1545 1546
1546 SetupFunction(); 1547 SetupFunction();
OLDNEW
« no previous file with comments | « src/string.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698