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

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

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/ic/handler-compiler.cc ('k') | src/mips/code-stubs-mips.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 #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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 return GetTargetAtAddress(address(), constant_pool()); 123 return GetTargetAtAddress(address(), constant_pool());
124 } 124 }
125 125
126 void IC::UpdateTarget() { target_ = handle(raw_target(), isolate_); } 126 void IC::UpdateTarget() { target_ = handle(raw_target(), isolate_); }
127 127
128 128
129 JSFunction* IC::GetRootConstructor(Map* receiver_map, Context* native_context) { 129 JSFunction* IC::GetRootConstructor(Map* receiver_map, Context* native_context) {
130 Isolate* isolate = receiver_map->GetIsolate(); 130 Isolate* isolate = receiver_map->GetIsolate();
131 if (receiver_map == isolate->heap()->boolean_map()) { 131 if (receiver_map == isolate->heap()->boolean_map()) {
132 return native_context->boolean_function(); 132 return native_context->boolean_function();
133 } else if (receiver_map->instance_type() == HEAP_NUMBER_TYPE) { 133 }
134 if (receiver_map->instance_type() == HEAP_NUMBER_TYPE) {
134 return native_context->number_function(); 135 return native_context->number_function();
135 } else if (receiver_map->instance_type() < FIRST_NONSTRING_TYPE) { 136 }
137 if (receiver_map->instance_type() < FIRST_NONSTRING_TYPE) {
136 return native_context->string_function(); 138 return native_context->string_function();
137 } else if (receiver_map->instance_type() == SYMBOL_TYPE) { 139 }
140 if (receiver_map->instance_type() == SYMBOL_TYPE) {
138 return native_context->symbol_function(); 141 return native_context->symbol_function();
139 } else if (receiver_map->instance_type() == FLOAT32X4_TYPE) {
140 return native_context->float32x4_function();
141 } else if (receiver_map->instance_type() == INT32X4_TYPE) {
142 return native_context->int32x4_function();
143 } else if (receiver_map->instance_type() == BOOL32X4_TYPE) {
144 return native_context->bool32x4_function();
145 } else if (receiver_map->instance_type() == INT16X8_TYPE) {
146 return native_context->int16x8_function();
147 } else if (receiver_map->instance_type() == BOOL16X8_TYPE) {
148 return native_context->bool16x8_function();
149 } else if (receiver_map->instance_type() == INT8X16_TYPE) {
150 return native_context->int8x16_function();
151 } else if (receiver_map->instance_type() == BOOL8X16_TYPE) {
152 return native_context->bool8x16_function();
153 } else {
154 return NULL;
155 } 142 }
143 #define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \
144 if (receiver_map == isolate->heap()->type##_map()) { \
145 return native_context->type##_function(); \
146 }
147 SIMD128_TYPES(SIMD128_TYPE)
148 #undef SIMD128_TYPE
149 return nullptr;
156 } 150 }
157 151
158 152
159 Handle<Map> IC::GetHandlerCacheHolder(Handle<Map> receiver_map, 153 Handle<Map> IC::GetHandlerCacheHolder(Handle<Map> receiver_map,
160 bool receiver_is_holder, Isolate* isolate, 154 bool receiver_is_holder, Isolate* isolate,
161 CacheHolderFlag* flag) { 155 CacheHolderFlag* flag) {
162 if (receiver_is_holder) { 156 if (receiver_is_holder) {
163 *flag = kCacheOnReceiver; 157 *flag = kCacheOnReceiver;
164 return receiver_map; 158 return receiver_map;
165 } 159 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) { 200 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) {
207 Code* host = 201 Code* host =
208 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code; 202 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code;
209 return (host->kind() == Code::OPTIMIZED_FUNCTION && 203 return (host->kind() == Code::OPTIMIZED_FUNCTION &&
210 host->marked_for_deoptimization()); 204 host->marked_for_deoptimization());
211 } 205 }
212 } 206 }
213 } // namespace v8::internal 207 } // namespace v8::internal
214 208
215 #endif // V8_IC_INL_H_ 209 #endif // V8_IC_INL_H_
OLDNEW
« no previous file with comments | « src/ic/handler-compiler.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698