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

Side by Side Diff: src/json-stringifier.cc

Issue 2684313003: Remove SIMD.js from V8. (Closed)
Patch Set: Rebase. Created 3 years, 10 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/macros.py ('k') | src/messages.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/json-stringifier.h" 5 #include "src/json-stringifier.h"
6 6
7 #include "src/conversions.h" 7 #include "src/conversions.h"
8 #include "src/lookup.h" 8 #include "src/lookup.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 return SUCCESS; 316 return SUCCESS;
317 default: 317 default:
318 return UNCHANGED; 318 return UNCHANGED;
319 } 319 }
320 case JS_ARRAY_TYPE: 320 case JS_ARRAY_TYPE:
321 if (deferred_string_key) SerializeDeferredKey(comma, key); 321 if (deferred_string_key) SerializeDeferredKey(comma, key);
322 return SerializeJSArray(Handle<JSArray>::cast(object)); 322 return SerializeJSArray(Handle<JSArray>::cast(object));
323 case JS_VALUE_TYPE: 323 case JS_VALUE_TYPE:
324 if (deferred_string_key) SerializeDeferredKey(comma, key); 324 if (deferred_string_key) SerializeDeferredKey(comma, key);
325 return SerializeJSValue(Handle<JSValue>::cast(object)); 325 return SerializeJSValue(Handle<JSValue>::cast(object));
326 case SIMD128_VALUE_TYPE:
327 case SYMBOL_TYPE: 326 case SYMBOL_TYPE:
328 return UNCHANGED; 327 return UNCHANGED;
329 default: 328 default:
330 if (object->IsString()) { 329 if (object->IsString()) {
331 if (deferred_string_key) SerializeDeferredKey(comma, key); 330 if (deferred_string_key) SerializeDeferredKey(comma, key);
332 SerializeString(Handle<String>::cast(object)); 331 SerializeString(Handle<String>::cast(object));
333 return SUCCESS; 332 return SUCCESS;
334 } else { 333 } else {
335 DCHECK(object->IsJSReceiver()); 334 DCHECK(object->IsJSReceiver());
336 if (object->IsCallable()) return UNCHANGED; 335 if (object->IsCallable()) return UNCHANGED;
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 if (object->IsOneByteRepresentationUnderneath()) { 713 if (object->IsOneByteRepresentationUnderneath()) {
715 SerializeString_<uint8_t, uc16>(object); 714 SerializeString_<uint8_t, uc16>(object);
716 } else { 715 } else {
717 SerializeString_<uc16, uc16>(object); 716 SerializeString_<uc16, uc16>(object);
718 } 717 }
719 } 718 }
720 } 719 }
721 720
722 } // namespace internal 721 } // namespace internal
723 } // namespace v8 722 } // namespace v8
OLDNEW
« no previous file with comments | « src/js/macros.py ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698