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

Side by Side Diff: src/types.cc

Issue 17153011: DataView implementation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/typedarray.js ('k') | test/cctest/test-api.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 case JS_DATE_TYPE: 167 case JS_DATE_TYPE:
168 case JS_OBJECT_TYPE: 168 case JS_OBJECT_TYPE:
169 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 169 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
170 case JS_GENERATOR_OBJECT_TYPE: 170 case JS_GENERATOR_OBJECT_TYPE:
171 case JS_MODULE_TYPE: 171 case JS_MODULE_TYPE:
172 case JS_GLOBAL_OBJECT_TYPE: 172 case JS_GLOBAL_OBJECT_TYPE:
173 case JS_BUILTINS_OBJECT_TYPE: 173 case JS_BUILTINS_OBJECT_TYPE:
174 case JS_GLOBAL_PROXY_TYPE: 174 case JS_GLOBAL_PROXY_TYPE:
175 case JS_ARRAY_BUFFER_TYPE: 175 case JS_ARRAY_BUFFER_TYPE:
176 case JS_TYPED_ARRAY_TYPE: 176 case JS_TYPED_ARRAY_TYPE:
177 case JS_DATA_VIEW_TYPE:
177 case JS_WEAK_MAP_TYPE: 178 case JS_WEAK_MAP_TYPE:
178 case JS_REGEXP_TYPE: 179 case JS_REGEXP_TYPE:
179 if (map->is_undetectable()) return kUndetectable; 180 if (map->is_undetectable()) return kUndetectable;
180 return kOtherObject; 181 return kOtherObject;
181 case JS_ARRAY_TYPE: 182 case JS_ARRAY_TYPE:
182 return kArray; 183 return kArray;
183 case JS_FUNCTION_TYPE: 184 case JS_FUNCTION_TYPE:
184 return kFunction; 185 return kFunction;
185 case JS_PROXY_TYPE: 186 case JS_PROXY_TYPE:
186 case JS_FUNCTION_PROXY_TYPE: 187 case JS_FUNCTION_PROXY_TYPE:
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 } 450 }
450 451
451 452
452 Type* Type::Optional(Handle<Type> type) { 453 Type* Type::Optional(Handle<Type> type) {
453 return type->is_bitset() 454 return type->is_bitset()
454 ? from_bitset(type->as_bitset() | kUndefined) 455 ? from_bitset(type->as_bitset() | kUndefined)
455 : Union(type, Undefined()->handle_via_isolate_of(*type)); 456 : Union(type, Undefined()->handle_via_isolate_of(*type));
456 } 457 }
457 458
458 } } // namespace v8::internal 459 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/typedarray.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698