OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/cpu-profiler.h" | 7 #include "src/cpu-profiler.h" |
8 #include "src/ic/call-optimization.h" | 8 #include "src/ic/call-optimization.h" |
9 #include "src/ic/handler-compiler.h" | 9 #include "src/ic/handler-compiler.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 PrototypeCheckType check_type = CHECK_ALL_MAPS; | 102 PrototypeCheckType check_type = CHECK_ALL_MAPS; |
103 int function_index = -1; | 103 int function_index = -1; |
104 if (map()->instance_type() < FIRST_NONSTRING_TYPE) { | 104 if (map()->instance_type() < FIRST_NONSTRING_TYPE) { |
105 function_index = Context::STRING_FUNCTION_INDEX; | 105 function_index = Context::STRING_FUNCTION_INDEX; |
106 } else if (map()->instance_type() == SYMBOL_TYPE) { | 106 } else if (map()->instance_type() == SYMBOL_TYPE) { |
107 function_index = Context::SYMBOL_FUNCTION_INDEX; | 107 function_index = Context::SYMBOL_FUNCTION_INDEX; |
108 } else if (map()->instance_type() == HEAP_NUMBER_TYPE) { | 108 } else if (map()->instance_type() == HEAP_NUMBER_TYPE) { |
109 function_index = Context::NUMBER_FUNCTION_INDEX; | 109 function_index = Context::NUMBER_FUNCTION_INDEX; |
110 } else if (map()->instance_type() == FLOAT32X4_TYPE) { | 110 } else if (map()->instance_type() == FLOAT32X4_TYPE) { |
111 function_index = Context::FLOAT32X4_FUNCTION_INDEX; | 111 function_index = Context::FLOAT32X4_FUNCTION_INDEX; |
| 112 } else if (map()->instance_type() == INT32X4_TYPE) { |
| 113 function_index = Context::INT32X4_FUNCTION_INDEX; |
| 114 } else if (map()->instance_type() == BOOL32X4_TYPE) { |
| 115 function_index = Context::BOOL32X4_FUNCTION_INDEX; |
| 116 } else if (map()->instance_type() == INT16X8_TYPE) { |
| 117 function_index = Context::INT16X8_FUNCTION_INDEX; |
| 118 } else if (map()->instance_type() == BOOL16X8_TYPE) { |
| 119 function_index = Context::BOOL16X8_FUNCTION_INDEX; |
| 120 } else if (map()->instance_type() == INT8X16_TYPE) { |
| 121 function_index = Context::INT8X16_FUNCTION_INDEX; |
| 122 } else if (map()->instance_type() == BOOL8X16_TYPE) { |
| 123 function_index = Context::BOOL8X16_FUNCTION_INDEX; |
112 } else if (*map() == isolate()->heap()->boolean_map()) { | 124 } else if (*map() == isolate()->heap()->boolean_map()) { |
113 function_index = Context::BOOLEAN_FUNCTION_INDEX; | 125 function_index = Context::BOOLEAN_FUNCTION_INDEX; |
114 } else { | 126 } else { |
115 check_type = SKIP_RECEIVER; | 127 check_type = SKIP_RECEIVER; |
116 } | 128 } |
117 | 129 |
118 if (check_type == CHECK_ALL_MAPS) { | 130 if (check_type == CHECK_ALL_MAPS) { |
119 GenerateDirectLoadGlobalFunctionPrototype(masm(), function_index, | 131 GenerateDirectLoadGlobalFunctionPrototype(masm(), function_index, |
120 scratch1(), miss); | 132 scratch1(), miss); |
121 Object* function = isolate()->native_context()->get(function_index); | 133 Object* function = isolate()->native_context()->get(function_index); |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 : kNoExtraICState); | 599 : kNoExtraICState); |
588 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); | 600 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); |
589 } | 601 } |
590 } | 602 } |
591 | 603 |
592 handlers->Add(cached_stub); | 604 handlers->Add(cached_stub); |
593 } | 605 } |
594 } | 606 } |
595 } // namespace internal | 607 } // namespace internal |
596 } // namespace v8 | 608 } // namespace v8 |
OLD | NEW |