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

Side by Side Diff: src/messages.js

Issue 9616016: Make the runtime entry for setting/changing accessors "atomic". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporated review comments. Created 8 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/ia32/full-codegen-ia32.cc ('k') | src/mips/full-codegen-mips.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 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...) Expand 10 before | Expand all | Expand 10 after
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...) Expand 10 before | Expand all | Expand 10 after
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', []);
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698