OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/accessor-assembler.h" | 5 #include "src/ic/accessor-assembler.h" |
6 #include "src/ic/accessor-assembler-impl.h" | 6 #include "src/ic/accessor-assembler-impl.h" |
7 | 7 |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/ic/handler-configuration.h" | 10 #include "src/ic/handler-configuration.h" |
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1211 { | 1211 { |
1212 LoadWithVectorDescriptor descriptor(isolate()); | 1212 LoadWithVectorDescriptor descriptor(isolate()); |
1213 Node* native_context = LoadNativeContext(p->context); | 1213 Node* native_context = LoadNativeContext(p->context); |
1214 Node* receiver = | 1214 Node* receiver = |
1215 LoadContextElement(native_context, Context::EXTENSION_INDEX); | 1215 LoadContextElement(native_context, Context::EXTENSION_INDEX); |
1216 TailCallStub(descriptor, handler, p->context, receiver, p->name, p->slot, | 1216 TailCallStub(descriptor, handler, p->context, receiver, p->name, p->slot, |
1217 p->vector); | 1217 p->vector); |
1218 } | 1218 } |
1219 Bind(&miss); | 1219 Bind(&miss); |
1220 { | 1220 { |
1221 TailCallRuntime(Runtime::kLoadGlobalIC_Miss, p->context, p->slot, | 1221 TailCallRuntime(Runtime::kLoadGlobalIC_Miss, p->context, p->name, p->slot, |
1222 p->vector); | 1222 p->vector); |
1223 } | 1223 } |
1224 } | 1224 } |
1225 | 1225 |
1226 void AccessorAssemblerImpl::KeyedLoadIC(const LoadICParameters* p) { | 1226 void AccessorAssemblerImpl::KeyedLoadIC(const LoadICParameters* p) { |
1227 Variable var_handler(this, MachineRepresentation::kTagged); | 1227 Variable var_handler(this, MachineRepresentation::kTagged); |
1228 // TODO(ishell): defer blocks when it works. | 1228 // TODO(ishell): defer blocks when it works. |
1229 Label if_handler(this, &var_handler), try_polymorphic(this), | 1229 Label if_handler(this, &var_handler), try_polymorphic(this), |
1230 try_megamorphic(this /*, Label::kDeferred*/), | 1230 try_megamorphic(this /*, Label::kDeferred*/), |
1231 try_polymorphic_name(this /*, Label::kDeferred*/), | 1231 try_polymorphic_name(this /*, Label::kDeferred*/), |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1768 void AccessorAssembler::GenerateKeyedStoreICTrampolineTF( | 1768 void AccessorAssembler::GenerateKeyedStoreICTrampolineTF( |
1769 CodeAssemblerState* state, LanguageMode language_mode) { | 1769 CodeAssemblerState* state, LanguageMode language_mode) { |
1770 AccessorAssemblerImpl assembler(state); | 1770 AccessorAssemblerImpl assembler(state); |
1771 assembler.GenerateKeyedStoreICTrampolineTF(language_mode); | 1771 assembler.GenerateKeyedStoreICTrampolineTF(language_mode); |
1772 } | 1772 } |
1773 | 1773 |
1774 #undef ACCESSOR_ASSEMBLER_PUBLIC_INTERFACE | 1774 #undef ACCESSOR_ASSEMBLER_PUBLIC_INTERFACE |
1775 | 1775 |
1776 } // namespace internal | 1776 } // namespace internal |
1777 } // namespace v8 | 1777 } // namespace v8 |
OLD | NEW |