OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 750 matching lines...) Loading... |
762 return value; | 762 return value; |
763 } | 763 } |
764 hasBeenSet = true; | 764 hasBeenSet = true; |
765 value = fun(obj); | 765 value = fun(obj); |
766 return value; | 766 return value; |
767 }; | 767 }; |
768 var setter = function(v) { | 768 var setter = function(v) { |
769 hasBeenSet = true; | 769 hasBeenSet = true; |
770 value = v; | 770 value = v; |
771 }; | 771 }; |
772 %DefineOrRedefineAccessorProperty(obj, name, GETTER, getter, DONT_ENUM); | 772 %DefineOrRedefineAccessorProperty(obj, name, getter, setter, DONT_ENUM); |
773 %DefineOrRedefineAccessorProperty(obj, name, SETTER, setter, DONT_ENUM); | |
774 } | 773 } |
775 | 774 |
776 function CallSite(receiver, fun, pos) { | 775 function CallSite(receiver, fun, pos) { |
777 this.receiver = receiver; | 776 this.receiver = receiver; |
778 this.fun = fun; | 777 this.fun = fun; |
779 this.pos = pos; | 778 this.pos = pos; |
780 } | 779 } |
781 | 780 |
782 function CallSiteGetThis() { | 781 function CallSiteGetThis() { |
783 return this.receiver; | 782 return this.receiver; |
(...skipping 431 matching lines...) Loading... |
1215 throw e; | 1214 throw e; |
1216 } | 1215 } |
1217 } | 1216 } |
1218 | 1217 |
1219 | 1218 |
1220 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]); | 1219 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]); |
1221 | 1220 |
1222 // Boilerplate for exceptions for stack overflows. Used from | 1221 // Boilerplate for exceptions for stack overflows. Used from |
1223 // Isolate::StackOverflow(). | 1222 // Isolate::StackOverflow(). |
1224 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 1223 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
OLD | NEW |