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

Side by Side Diff: src/js/messages.js

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removing unreachable code Created 5 years, 1 month 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
« no previous file with comments | « src/heap/heap.h ('k') | src/js/proxy.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ------------------------------------------------------------------- 5 // -------------------------------------------------------------------
6 6
7 (function(global, utils) { 7 (function(global, utils) {
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 } 843 }
844 } 844 }
845 lines.push(" at " + line); 845 lines.push(" at " + line);
846 } 846 }
847 return %_Call(ArrayJoin, lines, "\n"); 847 return %_Call(ArrayJoin, lines, "\n");
848 } 848 }
849 849
850 850
851 function GetTypeName(receiver, requireConstructor) { 851 function GetTypeName(receiver, requireConstructor) {
852 if (IS_NULL_OR_UNDEFINED(receiver)) return null; 852 if (IS_NULL_OR_UNDEFINED(receiver)) return null;
853 if (%_IsJSProxy(receiver)) {
854 return "Proxy";
855 };
853 var constructor = receiver.constructor; 856 var constructor = receiver.constructor;
854 if (!constructor) { 857 if (!constructor) {
855 return requireConstructor ? null : 858 return requireConstructor ? null :
856 %_Call(NoSideEffectsObjectToString, receiver); 859 %_Call(NoSideEffectsObjectToString, receiver);
857 } 860 }
858 var constructorName = constructor.name; 861 var constructorName = constructor.name;
859 if (!constructorName) { 862 if (!constructorName) {
860 return requireConstructor ? null : 863 return requireConstructor ? null :
861 %_Call(NoSideEffectsObjectToString, receiver); 864 %_Call(NoSideEffectsObjectToString, receiver);
862 } 865 }
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 utils.Export(function(to) { 1034 utils.Export(function(to) {
1032 to.ErrorToString = ErrorToString; 1035 to.ErrorToString = ErrorToString;
1033 to.MakeError = MakeError; 1036 to.MakeError = MakeError;
1034 to.MakeRangeError = MakeRangeError; 1037 to.MakeRangeError = MakeRangeError;
1035 to.MakeSyntaxError = MakeSyntaxError; 1038 to.MakeSyntaxError = MakeSyntaxError;
1036 to.MakeTypeError = MakeTypeError; 1039 to.MakeTypeError = MakeTypeError;
1037 to.MakeURIError = MakeURIError; 1040 to.MakeURIError = MakeURIError;
1038 }); 1041 });
1039 1042
1040 }); 1043 });
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/js/proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698