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

Side by Side Diff: src/ic/ic-compiler.cc

Issue 685123007: Restore special interceptor stub for keyed loads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/x64/ic-x64.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 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/v8.h" 5 #include "src/v8.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/ic/ic-compiler.h" 9 #include "src/ic/ic-compiler.h"
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 Map::UpdateCodeCache(receiver_map, name, code); 101 Map::UpdateCodeCache(receiver_map, name, code);
102 return code; 102 return code;
103 } 103 }
104 104
105 105
106 Handle<Code> PropertyICCompiler::ComputeKeyedLoadMonomorphicHandler( 106 Handle<Code> PropertyICCompiler::ComputeKeyedLoadMonomorphicHandler(
107 Handle<Map> receiver_map) { 107 Handle<Map> receiver_map) {
108 Isolate* isolate = receiver_map->GetIsolate(); 108 Isolate* isolate = receiver_map->GetIsolate();
109 ElementsKind elements_kind = receiver_map->elements_kind(); 109 ElementsKind elements_kind = receiver_map->elements_kind();
110 Handle<Code> stub; 110 Handle<Code> stub;
111 if (receiver_map->has_indexed_interceptor()) { 111 if (receiver_map->IsStringMap()) {
112 stub = LoadIndexedInterceptorStub(isolate).GetCode();
113 } else if (receiver_map->IsStringMap()) {
114 // We have a string. 112 // We have a string.
115 stub = LoadIndexedStringStub(isolate).GetCode(); 113 stub = LoadIndexedStringStub(isolate).GetCode();
116 } else if (receiver_map->has_sloppy_arguments_elements()) { 114 } else if (receiver_map->has_sloppy_arguments_elements()) {
117 stub = KeyedLoadSloppyArgumentsStub(isolate).GetCode(); 115 stub = KeyedLoadSloppyArgumentsStub(isolate).GetCode();
118 } else if (receiver_map->has_fast_elements() || 116 } else if (receiver_map->has_fast_elements() ||
119 receiver_map->has_external_array_elements() || 117 receiver_map->has_external_array_elements() ||
120 receiver_map->has_fixed_typed_array_elements()) { 118 receiver_map->has_fixed_typed_array_elements()) {
121 stub = LoadFastElementStub(isolate, 119 stub = LoadFastElementStub(isolate,
122 receiver_map->instance_type() == JS_ARRAY_TYPE, 120 receiver_map->instance_type() == JS_ARRAY_TYPE,
123 elements_kind).GetCode(); 121 elements_kind).GetCode();
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 447
450 TailCallBuiltin(masm(), Builtins::kKeyedStoreIC_Miss); 448 TailCallBuiltin(masm(), Builtins::kKeyedStoreIC_Miss);
451 449
452 return GetCode(kind(), Code::NORMAL, factory()->empty_string()); 450 return GetCode(kind(), Code::NORMAL, factory()->empty_string());
453 } 451 }
454 452
455 453
456 #undef __ 454 #undef __
457 } 455 }
458 } // namespace v8::internal 456 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698