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

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

Issue 2040393002: Version 5.2.361.18 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.2
Patch Set: Created 4 years, 6 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 | « include/v8-version.h ('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 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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 try { 812 try {
813 return "<error: " + e + ">"; 813 return "<error: " + e + ">";
814 } catch (ee) { 814 } catch (ee) {
815 return "<error>"; 815 return "<error>";
816 } 816 }
817 } 817 }
818 } 818 }
819 819
820 820
821 function GetStackFrames(raw_stack) { 821 function GetStackFrames(raw_stack) {
822 var internal_raw_stack = new InternalArray();
823 %MoveArrayContents(raw_stack, internal_raw_stack);
822 var frames = new InternalArray(); 824 var frames = new InternalArray();
823 var sloppy_frames = raw_stack[0]; 825 var sloppy_frames = internal_raw_stack[0];
824 for (var i = 1; i < raw_stack.length; i += 4) { 826 for (var i = 1; i < internal_raw_stack.length; i += 4) {
825 var recv = raw_stack[i]; 827 var recv = internal_raw_stack[i];
826 var fun = raw_stack[i + 1]; 828 var fun = internal_raw_stack[i + 1];
827 var code = raw_stack[i + 2]; 829 var code = internal_raw_stack[i + 2];
828 var pc = raw_stack[i + 3]; 830 var pc = internal_raw_stack[i + 3];
829 // For traps in wasm, the bytecode offset is passed as (-1 - offset). 831 // For traps in wasm, the bytecode offset is passed as (-1 - offset).
830 // Otherwise, lookup the position from the pc. 832 // Otherwise, lookup the position from the pc.
831 var pos = IS_NUMBER(fun) && pc < 0 ? (-1 - pc) : 833 var pos = IS_NUMBER(fun) && pc < 0 ? (-1 - pc) :
832 %FunctionGetPositionForOffset(code, pc); 834 %FunctionGetPositionForOffset(code, pc);
833 sloppy_frames--; 835 sloppy_frames--;
834 frames.push(new CallSite(recv, fun, pos, (sloppy_frames < 0))); 836 frames.push(new CallSite(recv, fun, pos, (sloppy_frames < 0)));
835 } 837 }
836 return frames; 838 return frames;
837 } 839 }
838 840
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 utils.Export(function(to) { 1047 utils.Export(function(to) {
1046 to.ErrorToString = ErrorToString; 1048 to.ErrorToString = ErrorToString;
1047 to.MakeError = MakeError; 1049 to.MakeError = MakeError;
1048 to.MakeRangeError = MakeRangeError; 1050 to.MakeRangeError = MakeRangeError;
1049 to.MakeSyntaxError = MakeSyntaxError; 1051 to.MakeSyntaxError = MakeSyntaxError;
1050 to.MakeTypeError = MakeTypeError; 1052 to.MakeTypeError = MakeTypeError;
1051 to.MakeURIError = MakeURIError; 1053 to.MakeURIError = MakeURIError;
1052 }); 1054 });
1053 1055
1054 }); 1056 });
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698