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

Side by Side Diff: src/messages.js

Issue 1294513004: [simd.js] Update to spec version 0.8.2. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 5 years, 3 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/heap/heap.h ('k') | src/objects.h » ('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 MakeError; 8 var MakeError;
9 var MakeEvalError; 9 var MakeEvalError;
10 var MakeRangeError; 10 var MakeRangeError;
(...skipping 30 matching lines...) Expand all
41 var Int8x16ToString; 41 var Int8x16ToString;
42 var InternalArray = utils.InternalArray; 42 var InternalArray = utils.InternalArray;
43 var internalErrorSymbol = utils.GetPrivateSymbol("internal_error_symbol"); 43 var internalErrorSymbol = utils.GetPrivateSymbol("internal_error_symbol");
44 var ObjectDefineProperty; 44 var ObjectDefineProperty;
45 var ObjectToString; 45 var ObjectToString;
46 var stackTraceSymbol = utils.GetPrivateSymbol("stack_trace_symbol"); 46 var stackTraceSymbol = utils.GetPrivateSymbol("stack_trace_symbol");
47 var StringCharAt; 47 var StringCharAt;
48 var StringIndexOf; 48 var StringIndexOf;
49 var StringSubstring; 49 var StringSubstring;
50 var ToString; 50 var ToString;
51 var Float32x4ToString;
52 var Int32x4ToString;
53 var Uint32x4ToString;
54 var Bool32x4ToString;
55 var Int16x8ToString;
56 var Uint16x8ToString;
57 var Bool16x8ToString;
58 var Int8x16ToString;
59 var Uint8x16ToString;
60 var Bool8x16ToString;
51 61
52 utils.Import(function(from) { 62 utils.Import(function(from) {
53 ArrayJoin = from.ArrayJoin; 63 ArrayJoin = from.ArrayJoin;
54 Bool16x8ToString = from.Bool16x8ToString; 64 Bool16x8ToString = from.Bool16x8ToString;
55 Bool32x4ToString = from.Bool32x4ToString; 65 Bool32x4ToString = from.Bool32x4ToString;
56 Bool8x16ToString = from.Bool8x16ToString; 66 Bool8x16ToString = from.Bool8x16ToString;
57 Float32x4ToString = from.Float32x4ToString; 67 Float32x4ToString = from.Float32x4ToString;
58 FunctionSourceString = from.FunctionSourceString; 68 FunctionSourceString = from.FunctionSourceString;
59 Int16x8ToString = from.Int16x8ToString; 69 Int16x8ToString = from.Int16x8ToString;
60 Int32x4ToString = from.Int32x4ToString; 70 Int32x4ToString = from.Int32x4ToString;
61 Int8x16ToString = from.Int8x16ToString; 71 Int8x16ToString = from.Int8x16ToString;
62 ObjectDefineProperty = from.ObjectDefineProperty; 72 ObjectDefineProperty = from.ObjectDefineProperty;
63 ObjectToString = from.ObjectToString; 73 ObjectToString = from.ObjectToString;
64 StringCharAt = from.StringCharAt; 74 StringCharAt = from.StringCharAt;
65 StringIndexOf = from.StringIndexOf; 75 StringIndexOf = from.StringIndexOf;
66 StringSubstring = from.StringSubstring; 76 StringSubstring = from.StringSubstring;
77 Float32x4ToString = from.Float32x4ToString;
78 Int32x4ToString = from.Int32x4ToString;
79 Uint32x4ToString = from.Uint32x4ToString;
80 Bool32x4ToString = from.Bool32x4ToString;
81 Int16x8ToString = from.Int16x8ToString;
82 Uint16x8ToString = from.Uint16x8ToString;
83 Bool16x8ToString = from.Bool16x8ToString;
84 Int8x16ToString = from.Int8x16ToString;
85 Uint8x16ToString = from.Uint8x16ToString;
86 Bool8x16ToString = from.Bool8x16ToString;
67 }); 87 });
68 88
69 utils.ImportNow(function(from) { 89 utils.ImportNow(function(from) {
70 ToString = from.ToString; 90 ToString = from.ToString;
71 }); 91 });
72 92
73 // ------------------------------------------------------------------- 93 // -------------------------------------------------------------------
74 94
75 var GlobalError; 95 var GlobalError;
76 var GlobalTypeError; 96 var GlobalTypeError;
(...skipping 23 matching lines...) Expand all
100 str = %_SubString(str, 0, 111) + "...<omitted>..." + 120 str = %_SubString(str, 0, 111) + "...<omitted>..." +
101 %_SubString(str, str.length - 2, str.length); 121 %_SubString(str, str.length - 2, str.length);
102 } 122 }
103 return str; 123 return str;
104 } 124 }
105 if (IS_SYMBOL(obj)) return %_CallFunction(obj, $symbolToString); 125 if (IS_SYMBOL(obj)) return %_CallFunction(obj, $symbolToString);
106 if (IS_SIMD_VALUE(obj)) { 126 if (IS_SIMD_VALUE(obj)) {
107 switch (typeof(obj)) { 127 switch (typeof(obj)) {
108 case 'float32x4': return %_CallFunction(obj, Float32x4ToString); 128 case 'float32x4': return %_CallFunction(obj, Float32x4ToString);
109 case 'int32x4': return %_CallFunction(obj, Int32x4ToString); 129 case 'int32x4': return %_CallFunction(obj, Int32x4ToString);
130 case 'uint32x4': return %_CallFunction(obj, Uint32x4ToString);
110 case 'bool32x4': return %_CallFunction(obj, Bool32x4ToString); 131 case 'bool32x4': return %_CallFunction(obj, Bool32x4ToString);
111 case 'int16x8': return %_CallFunction(obj, Int16x8ToString); 132 case 'int16x8': return %_CallFunction(obj, Int16x8ToString);
133 case 'uint16x8': return %_CallFunction(obj, Uint16x8ToString);
112 case 'bool16x8': return %_CallFunction(obj, Bool16x8ToString); 134 case 'bool16x8': return %_CallFunction(obj, Bool16x8ToString);
113 case 'int16x8': return %_CallFunction(obj, Int16x8ToString); 135 case 'int8x16': return %_CallFunction(obj, Int8x16ToString);
114 case 'bool16x8': return %_CallFunction(obj, Bool16x8ToString); 136 case 'uint8x16': return %_CallFunction(obj, Uint8x16ToString);
137 case 'bool8x16': return %_CallFunction(obj, Bool8x16ToString);
115 } 138 }
116 } 139 }
117 if (IS_OBJECT(obj) 140 if (IS_OBJECT(obj)
118 && %GetDataProperty(obj, "toString") === ObjectToString) { 141 && %GetDataProperty(obj, "toString") === ObjectToString) {
119 var constructor = %GetDataProperty(obj, "constructor"); 142 var constructor = %GetDataProperty(obj, "constructor");
120 if (typeof constructor == "function") { 143 if (typeof constructor == "function") {
121 var constructorName = constructor.name; 144 var constructorName = constructor.name;
122 if (IS_STRING(constructorName) && constructorName !== "") { 145 if (IS_STRING(constructorName) && constructorName !== "") {
123 return "#<" + constructorName + ">"; 146 return "#<" + constructorName + ">";
124 } 147 }
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 to["range_error_function"] = GlobalRangeError; 1051 to["range_error_function"] = GlobalRangeError;
1029 to["reference_error_function"] = GlobalReferenceError; 1052 to["reference_error_function"] = GlobalReferenceError;
1030 to["stack_overflow_boilerplate"] = StackOverflowBoilerplate; 1053 to["stack_overflow_boilerplate"] = StackOverflowBoilerplate;
1031 to["syntax_error_function"] = GlobalSyntaxError; 1054 to["syntax_error_function"] = GlobalSyntaxError;
1032 to["to_detail_string_fun"] = ToDetailString; 1055 to["to_detail_string_fun"] = ToDetailString;
1033 to["type_error_function"] = GlobalTypeError; 1056 to["type_error_function"] = GlobalTypeError;
1034 to["uri_error_function"] = GlobalURIError; 1057 to["uri_error_function"] = GlobalURIError;
1035 }); 1058 });
1036 1059
1037 }); 1060 });
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698