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

Side by Side Diff: src/messages.js

Issue 1253103006: Rename IsSimdObject assembly intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/macros.py ('k') | src/runtime.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 var $errorToString; 7 var $errorToString;
8 var $getStackTraceLine; 8 var $getStackTraceLine;
9 var $messageGetPositionInLine; 9 var $messageGetPositionInLine;
10 var $messageGetLineNumber; 10 var $messageGetLineNumber;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (IS_NULL(obj)) return 'null'; 79 if (IS_NULL(obj)) return 'null';
80 if (IS_FUNCTION(obj)) { 80 if (IS_FUNCTION(obj)) {
81 var str = %_CallFunction(obj, obj, $functionSourceString); 81 var str = %_CallFunction(obj, obj, $functionSourceString);
82 if (str.length > 128) { 82 if (str.length > 128) {
83 str = %_SubString(str, 0, 111) + "...<omitted>..." + 83 str = %_SubString(str, 0, 111) + "...<omitted>..." +
84 %_SubString(str, str.length - 2, str.length); 84 %_SubString(str, str.length - 2, str.length);
85 } 85 }
86 return str; 86 return str;
87 } 87 }
88 if (IS_SYMBOL(obj)) return %_CallFunction(obj, $symbolToString); 88 if (IS_SYMBOL(obj)) return %_CallFunction(obj, $symbolToString);
89 if (IS_SIMD_OBJECT(obj)) { 89 if (IS_SIMD_VALUE(obj)) {
90 switch (typeof(obj)) { 90 switch (typeof(obj)) {
91 case 'float32x4': return %_CallFunction(obj, $float32x4ToString); 91 case 'float32x4': return %_CallFunction(obj, $float32x4ToString);
92 case 'int32x4': return %_CallFunction(obj, $int32x4ToString); 92 case 'int32x4': return %_CallFunction(obj, $int32x4ToString);
93 case 'bool32x4': return %_CallFunction(obj, $bool32x4ToString); 93 case 'bool32x4': return %_CallFunction(obj, $bool32x4ToString);
94 case 'int16x8': return %_CallFunction(obj, $int16x8ToString); 94 case 'int16x8': return %_CallFunction(obj, $int16x8ToString);
95 case 'bool16x8': return %_CallFunction(obj, $bool16x8ToString); 95 case 'bool16x8': return %_CallFunction(obj, $bool16x8ToString);
96 case 'int16x8': return %_CallFunction(obj, $int16x8ToString); 96 case 'int16x8': return %_CallFunction(obj, $int16x8ToString);
97 case 'bool16x8': return %_CallFunction(obj, $bool16x8ToString); 97 case 'bool16x8': return %_CallFunction(obj, $bool16x8ToString);
98 } 98 }
99 } 99 }
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 // Define accessors first, as this may fail and throw. 1105 // Define accessors first, as this may fail and throw.
1106 ObjectDefineProperty(obj, 'stack', { get: StackTraceGetter, 1106 ObjectDefineProperty(obj, 'stack', { get: StackTraceGetter,
1107 set: StackTraceSetter, 1107 set: StackTraceSetter,
1108 configurable: true }); 1108 configurable: true });
1109 %CollectStackTrace(obj, cons_opt ? cons_opt : captureStackTrace); 1109 %CollectStackTrace(obj, cons_opt ? cons_opt : captureStackTrace);
1110 }; 1110 };
1111 1111
1112 GlobalError.captureStackTrace = captureStackTrace; 1112 GlobalError.captureStackTrace = captureStackTrace;
1113 1113
1114 }); 1114 });
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698