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

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

Issue 2424433002: [ic] Delete old KeyedLoadIC code (Closed)
Patch Set: fix failing test Created 4 years, 2 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/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after
2092 code->set_handler_table(*handler_table); 2092 code->set_handler_table(*handler_table);
2093 } 2093 }
2094 2094
2095 2095
2096 void LoadDictionaryElementStub::InitializeDescriptor( 2096 void LoadDictionaryElementStub::InitializeDescriptor(
2097 CodeStubDescriptor* descriptor) { 2097 CodeStubDescriptor* descriptor) {
2098 descriptor->Initialize( 2098 descriptor->Initialize(
2099 FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure)); 2099 FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure));
2100 } 2100 }
2101 2101
2102
2103 void KeyedLoadGenericStub::InitializeDescriptor(
2104 CodeStubDescriptor* descriptor) {
2105 descriptor->Initialize(
2106 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry);
2107 }
2108
2109
2110 void HandlerStub::InitializeDescriptor(CodeStubDescriptor* descriptor) { 2102 void HandlerStub::InitializeDescriptor(CodeStubDescriptor* descriptor) {
2111 DCHECK(kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC); 2103 DCHECK(kind() == Code::LOAD_IC || kind() == Code::KEYED_LOAD_IC);
2112 if (kind() == Code::KEYED_LOAD_IC) { 2104 if (kind() == Code::KEYED_LOAD_IC) {
2113 descriptor->Initialize( 2105 descriptor->Initialize(
2114 FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure)); 2106 FUNCTION_ADDR(Runtime_KeyedLoadIC_MissFromStubFailure));
2115 } 2107 }
2116 } 2108 }
2117 2109
2118 2110
2119 CallInterfaceDescriptor HandlerStub::GetCallInterfaceDescriptor() const { 2111 CallInterfaceDescriptor HandlerStub::GetCallInterfaceDescriptor() const {
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
3045 3037
3046 if (type == MachineType::Pointer()) { 3038 if (type == MachineType::Pointer()) {
3047 return Representation::External(); 3039 return Representation::External();
3048 } 3040 }
3049 3041
3050 return Representation::Tagged(); 3042 return Representation::Tagged();
3051 } 3043 }
3052 3044
3053 } // namespace internal 3045 } // namespace internal
3054 } // namespace v8 3046 } // 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