| 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/ic/ic-compiler.h" | 5 #include "src/ic/ic-compiler.h" |
| 6 | 6 |
| 7 #include "src/ic/handler-compiler.h" | 7 #include "src/ic/handler-compiler.h" |
| 8 #include "src/ic/ic-inl.h" | 8 #include "src/ic/ic-inl.h" |
| 9 #include "src/profiler/cpu-profiler.h" | |
| 10 | |
| 11 | 9 |
| 12 namespace v8 { | 10 namespace v8 { |
| 13 namespace internal { | 11 namespace internal { |
| 14 | 12 |
| 15 | 13 |
| 16 Handle<Code> PropertyICCompiler::ComputeKeyedLoadMonomorphicHandler( | 14 Handle<Code> PropertyICCompiler::ComputeKeyedLoadMonomorphicHandler( |
| 17 Handle<Map> receiver_map, ExtraICState extra_ic_state) { | 15 Handle<Map> receiver_map, ExtraICState extra_ic_state) { |
| 18 Isolate* isolate = receiver_map->GetIsolate(); | 16 Isolate* isolate = receiver_map->GetIsolate(); |
| 19 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE; | 17 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE; |
| 20 ElementsKind elements_kind = receiver_map->elements_kind(); | 18 ElementsKind elements_kind = receiver_map->elements_kind(); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 TRACE_HANDLER_STATS(isolate(), KeyedStoreIC_StoreElementStub); | 143 TRACE_HANDLER_STATS(isolate(), KeyedStoreIC_StoreElementStub); |
| 146 stub = StoreElementStub(isolate(), elements_kind, store_mode).GetCode(); | 144 stub = StoreElementStub(isolate(), elements_kind, store_mode).GetCode(); |
| 147 } | 145 } |
| 148 return stub; | 146 return stub; |
| 149 } | 147 } |
| 150 | 148 |
| 151 | 149 |
| 152 #undef __ | 150 #undef __ |
| 153 } // namespace internal | 151 } // namespace internal |
| 154 } // namespace v8 | 152 } // namespace v8 |
| OLD | NEW |