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

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

Issue 1922453002: Migrate Object.getPrototypeOf from v8natives to builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « src/js/array.js ('k') | src/js/v8natives.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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 var holder = this; 871 var holder = this;
872 while (holder) { 872 while (holder) {
873 var formatted_stack_trace = 873 var formatted_stack_trace =
874 GET_PRIVATE(holder, formattedStackTraceSymbol); 874 GET_PRIVATE(holder, formattedStackTraceSymbol);
875 if (IS_UNDEFINED(formatted_stack_trace)) { 875 if (IS_UNDEFINED(formatted_stack_trace)) {
876 // No formatted stack trace available. 876 // No formatted stack trace available.
877 var stack_trace = GET_PRIVATE(holder, stackTraceSymbol); 877 var stack_trace = GET_PRIVATE(holder, stackTraceSymbol);
878 if (IS_UNDEFINED(stack_trace)) { 878 if (IS_UNDEFINED(stack_trace)) {
879 // Neither formatted nor structured stack trace available. 879 // Neither formatted nor structured stack trace available.
880 // Look further up the prototype chain. 880 // Look further up the prototype chain.
881 holder = %_GetPrototype(holder); 881 holder = %object_get_prototype_of(holder);
882 continue; 882 continue;
883 } 883 }
884 formatted_stack_trace = FormatStackTrace(holder, stack_trace); 884 formatted_stack_trace = FormatStackTrace(holder, stack_trace);
885 SET_PRIVATE(holder, stackTraceSymbol, UNDEFINED); 885 SET_PRIVATE(holder, stackTraceSymbol, UNDEFINED);
886 SET_PRIVATE(holder, formattedStackTraceSymbol, formatted_stack_trace); 886 SET_PRIVATE(holder, formattedStackTraceSymbol, formatted_stack_trace);
887 } 887 }
888 return formatted_stack_trace; 888 return formatted_stack_trace;
889 } 889 }
890 return UNDEFINED; 890 return UNDEFINED;
891 }; 891 };
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 utils.Export(function(to) { 1017 utils.Export(function(to) {
1018 to.ErrorToString = ErrorToString; 1018 to.ErrorToString = ErrorToString;
1019 to.MakeError = MakeError; 1019 to.MakeError = MakeError;
1020 to.MakeRangeError = MakeRangeError; 1020 to.MakeRangeError = MakeRangeError;
1021 to.MakeSyntaxError = MakeSyntaxError; 1021 to.MakeSyntaxError = MakeSyntaxError;
1022 to.MakeTypeError = MakeTypeError; 1022 to.MakeTypeError = MakeTypeError;
1023 to.MakeURIError = MakeURIError; 1023 to.MakeURIError = MakeURIError;
1024 }); 1024 });
1025 1025
1026 }); 1026 });
OLDNEW
« no previous file with comments | « src/js/array.js ('k') | src/js/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698