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

Side by Side Diff: src/code-stubs.cc

Issue 1700993002: Remove strong mode support from property loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. Created 4 years, 10 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/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('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 #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
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698