| OLD | NEW |
| 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 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/compiler/code-stub-assembler.h" | 10 #include "src/compiler/code-stub-assembler.h" |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 void LoadDictionaryElementStub::InitializeDescriptor( | 594 void LoadDictionaryElementStub::InitializeDescriptor( |
| 595 CodeStubDescriptor* descriptor) { | 595 CodeStubDescriptor* descriptor) { |
| 596 descriptor->Initialize( | 596 descriptor->Initialize( |
| 597 FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure)); | 597 FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure)); |
| 598 } | 598 } |
| 599 | 599 |
| 600 | 600 |
| 601 void KeyedLoadGenericStub::InitializeDescriptor( | 601 void KeyedLoadGenericStub::InitializeDescriptor( |
| 602 CodeStubDescriptor* descriptor) { | 602 CodeStubDescriptor* descriptor) { |
| 603 descriptor->Initialize( | 603 descriptor->Initialize( |
| 604 Runtime::FunctionForId(is_strong(language_mode()) | 604 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry); |
| 605 ? Runtime::kKeyedGetPropertyStrong | |
| 606 : Runtime::kKeyedGetProperty)->entry); | |
| 607 } | 605 } |
| 608 | 606 |
| 609 | 607 |
| 610 void HandlerStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { | 608 void HandlerStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { |
| 611 if (kind() == Code::STORE_IC) { | 609 if (kind() == Code::STORE_IC) { |
| 612 descriptor->Initialize(FUNCTION_ADDR(Runtime_StoreIC_MissFromStubFailure)); | 610 descriptor->Initialize(FUNCTION_ADDR(Runtime_StoreIC_MissFromStubFailure)); |
| 613 } else if (kind() == Code::KEYED_LOAD_IC) { | 611 } else if (kind() == Code::KEYED_LOAD_IC) { |
| 614 descriptor->Initialize( | 612 descriptor->Initialize( |
| 615 FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure)); | 613 FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure)); |
| 616 } else if (kind() == Code::KEYED_STORE_IC) { | 614 } else if (kind() == Code::KEYED_STORE_IC) { |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 if (type->Is(Type::UntaggedPointer())) { | 986 if (type->Is(Type::UntaggedPointer())) { |
| 989 return Representation::External(); | 987 return Representation::External(); |
| 990 } | 988 } |
| 991 | 989 |
| 992 DCHECK(!type->Is(Type::Untagged())); | 990 DCHECK(!type->Is(Type::Untagged())); |
| 993 return Representation::Tagged(); | 991 return Representation::Tagged(); |
| 994 } | 992 } |
| 995 | 993 |
| 996 } // namespace internal | 994 } // namespace internal |
| 997 } // namespace v8 | 995 } // namespace v8 |
| OLD | NEW |