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

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

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: samevalue.js tweak. Created 5 years, 5 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 Object* obj = feedback_vector_->Get(slot); 75 Object* obj = feedback_vector_->Get(slot);
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 return Handle<Object>(obj, isolate()); 87 return Handle<Object>(obj, isolate());
87 } 88 }
88 89
89 return undefined; 90 return undefined;
90 } 91 }
91 92
92 93
93 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(TypeFeedbackId id) { 94 InlineCacheState TypeFeedbackOracle::LoadInlineCacheState(TypeFeedbackId id) {
94 Handle<Object> maybe_code = GetInfo(id); 95 Handle<Object> maybe_code = GetInfo(id);
95 if (maybe_code->IsCode()) { 96 if (maybe_code->IsCode()) {
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 // Dictionary has been allocated with sufficient size for all elements. 515 // Dictionary has been allocated with sufficient size for all elements.
515 DisallowHeapAllocation no_need_to_resize_dictionary; 516 DisallowHeapAllocation no_need_to_resize_dictionary;
516 HandleScope scope(isolate()); 517 HandleScope scope(isolate());
517 USE(UnseededNumberDictionary::AtNumberPut( 518 USE(UnseededNumberDictionary::AtNumberPut(
518 dictionary_, IdToKey(ast_id), handle(target, isolate()))); 519 dictionary_, IdToKey(ast_id), handle(target, isolate())));
519 } 520 }
520 521
521 522
522 } // namespace internal 523 } // namespace internal
523 } // namespace v8 524 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-simd.cc ('k') | src/types.cc » ('j') | test/mjsunit/object-toprimitive.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698