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

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: Back out changes to include/v8.h 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
« no previous file with comments | « src/ic/handler-compiler.cc ('k') | src/macros.py » ('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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 } else if (receiver_map->instance_type() == HEAP_NUMBER_TYPE) {
134 return native_context->number_function(); 134 return native_context->number_function();
135 } else if (receiver_map->instance_type() < FIRST_NONSTRING_TYPE) { 135 } else if (receiver_map->instance_type() < FIRST_NONSTRING_TYPE) {
136 return native_context->string_function(); 136 return native_context->string_function();
137 } else if (receiver_map->instance_type() == SYMBOL_TYPE) { 137 } else if (receiver_map->instance_type() == SYMBOL_TYPE) {
138 return native_context->symbol_function(); 138 return native_context->symbol_function();
139 } else if (receiver_map->instance_type() == FLOAT32X4_TYPE) {
140 return native_context->float32x4_function();
139 } else { 141 } else {
140 return NULL; 142 return NULL;
141 } 143 }
142 } 144 }
143 145
144 146
145 Handle<Map> IC::GetHandlerCacheHolder(Handle<Map> receiver_map, 147 Handle<Map> IC::GetHandlerCacheHolder(Handle<Map> receiver_map,
146 bool receiver_is_holder, Isolate* isolate, 148 bool receiver_is_holder, Isolate* isolate,
147 CacheHolderFlag* flag) { 149 CacheHolderFlag* flag) {
148 if (receiver_is_holder) { 150 if (receiver_is_holder) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) { 194 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) {
193 Code* host = 195 Code* host =
194 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code; 196 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code;
195 return (host->kind() == Code::OPTIMIZED_FUNCTION && 197 return (host->kind() == Code::OPTIMIZED_FUNCTION &&
196 host->marked_for_deoptimization()); 198 host->marked_for_deoptimization());
197 } 199 }
198 } 200 }
199 } // namespace v8::internal 201 } // namespace v8::internal
200 202
201 #endif // V8_IC_INL_H_ 203 #endif // V8_IC_INL_H_
OLDNEW
« no previous file with comments | « src/ic/handler-compiler.cc ('k') | src/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698