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

Side by Side Diff: src/type-info.cc

Issue 1273353003: [simd.js] Single SIMD128_VALUE_TYPE for all Simd128Values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow check failures. REBASE. 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/runtime/runtime-simd.cc ('k') | src/types.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Vector-based ICs do not embed direct pointers to maps, functions. 77 // Vector-based ICs do not embed direct pointers to maps, functions.
78 // Instead a WeakCell is always used. 78 // Instead a WeakCell is always used.
79 if (obj->IsWeakCell()) { 79 if (obj->IsWeakCell()) {
80 WeakCell* cell = WeakCell::cast(obj); 80 WeakCell* cell = WeakCell::cast(obj);
81 if (cell->cleared()) return undefined; 81 if (cell->cleared()) return undefined;
82 obj = cell->value(); 82 obj = cell->value();
83 } 83 }
84 84
85 if (obj->IsJSFunction() || obj->IsAllocationSite() || obj->IsSymbol() || 85 if (obj->IsJSFunction() || obj->IsAllocationSite() || obj->IsSymbol() ||
86 obj->IsFloat32x4()) { 86 obj->IsSimd128Value()) {
87 return Handle<Object>(obj, isolate()); 87 return Handle<Object>(obj, isolate());
88 } 88 }
89 89
90 return undefined; 90 return undefined;
91 } 91 }
92 92
93 93
94 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(TypeFeedbackId id) { 94 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(TypeFeedbackId id) {
95 Handle<Object> maybe_code = GetInfo(id); 95 Handle<Object> maybe_code = GetInfo(id);
96 if (maybe_code->IsCode()) { 96 if (maybe_code->IsCode()) {
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 // Dictionary has been allocated with sufficient size for all elements. 524 // Dictionary has been allocated with sufficient size for all elements.
525 DisallowHeapAllocation no_need_to_resize_dictionary; 525 DisallowHeapAllocation no_need_to_resize_dictionary;
526 HandleScope scope(isolate()); 526 HandleScope scope(isolate());
527 USE(UnseededNumberDictionary::AtNumberPut( 527 USE(UnseededNumberDictionary::AtNumberPut(
528 dictionary_, IdToKey(ast_id), handle(target, isolate()))); 528 dictionary_, IdToKey(ast_id), handle(target, isolate())));
529 } 529 }
530 530
531 531
532 } // namespace internal 532 } // namespace internal
533 } // namespace v8 533 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-simd.cc ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698