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

Side by Side Diff: src/ic/ic-inl.h

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 #ifndef V8_IC_INL_H_ 5 #ifndef V8_IC_INL_H_
6 #define V8_IC_INL_H_ 6 #define V8_IC_INL_H_
7 7
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 JSFunction* IC::GetRootConstructor(Map* receiver_map, Context* native_context) { 170 JSFunction* IC::GetRootConstructor(Map* receiver_map, Context* native_context) {
171 Isolate* isolate = receiver_map->GetIsolate(); 171 Isolate* isolate = receiver_map->GetIsolate();
172 if (receiver_map == isolate->heap()->boolean_map()) { 172 if (receiver_map == isolate->heap()->boolean_map()) {
173 return native_context->boolean_function(); 173 return native_context->boolean_function();
174 } else if (receiver_map->instance_type() == HEAP_NUMBER_TYPE) { 174 } else if (receiver_map->instance_type() == HEAP_NUMBER_TYPE) {
175 return native_context->number_function(); 175 return native_context->number_function();
176 } else if (receiver_map->instance_type() < FIRST_NONSTRING_TYPE) { 176 } else if (receiver_map->instance_type() < FIRST_NONSTRING_TYPE) {
177 return native_context->string_function(); 177 return native_context->string_function();
178 } else if (receiver_map->instance_type() == SYMBOL_TYPE) { 178 } else if (receiver_map->instance_type() == SYMBOL_TYPE) {
179 return native_context->symbol_function(); 179 return native_context->symbol_function();
180 } else if (receiver_map->instance_type() == FLOAT32X4_TYPE) {
181 return native_context->float32x4_function();
180 } else { 182 } else {
181 return NULL; 183 return NULL;
182 } 184 }
183 } 185 }
184 186
185 187
186 Handle<Map> IC::GetHandlerCacheHolder(Handle<Map> receiver_map, 188 Handle<Map> IC::GetHandlerCacheHolder(Handle<Map> receiver_map,
187 bool receiver_is_holder, Isolate* isolate, 189 bool receiver_is_holder, Isolate* isolate,
188 CacheHolderFlag* flag) { 190 CacheHolderFlag* flag) {
189 if (receiver_is_holder) { 191 if (receiver_is_holder) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) { 235 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) {
234 Code* host = 236 Code* host =
235 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code; 237 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code;
236 return (host->kind() == Code::OPTIMIZED_FUNCTION && 238 return (host->kind() == Code::OPTIMIZED_FUNCTION &&
237 host->marked_for_deoptimization()); 239 host->marked_for_deoptimization());
238 } 240 }
239 } 241 }
240 } // namespace v8::internal 242 } // namespace v8::internal
241 243
242 #endif // V8_IC_INL_H_ 244 #endif // V8_IC_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698