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

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 2182103002: [KeyedLoadIC] Support Smi "handlers" for simple field loads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 4 years, 4 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/field-index-inl.h ('k') | src/ic/handler-compiler.h » ('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/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 PushOperand(key->value()); 1023 PushOperand(key->value());
1024 CallRuntimeWithOperands(Runtime::kLoadFromSuper); 1024 CallRuntimeWithOperands(Runtime::kLoadFromSuper);
1025 } 1025 }
1026 1026
1027 void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { 1027 void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) {
1028 SetExpressionPosition(prop); 1028 SetExpressionPosition(prop);
1029 Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate()).code(); 1029 Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate()).code();
1030 __ Move(LoadDescriptor::SlotRegister(), 1030 __ Move(LoadDescriptor::SlotRegister(),
1031 SmiFromSlot(prop->PropertyFeedbackSlot())); 1031 SmiFromSlot(prop->PropertyFeedbackSlot()));
1032 CallIC(ic); 1032 CallIC(ic);
1033 if (FLAG_tf_load_ic_stub) RestoreContext();
1033 } 1034 }
1034 1035
1035 void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) { 1036 void FullCodeGenerator::EmitKeyedSuperPropertyLoad(Property* prop) {
1036 // Stack: receiver, home_object, key. 1037 // Stack: receiver, home_object, key.
1037 SetExpressionPosition(prop); 1038 SetExpressionPosition(prop);
1038 CallRuntimeWithOperands(Runtime::kLoadKeyedFromSuper); 1039 CallRuntimeWithOperands(Runtime::kLoadKeyedFromSuper);
1039 } 1040 }
1040 1041
1041 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property, 1042 void FullCodeGenerator::EmitPropertyKey(ObjectLiteralProperty* property,
1042 BailoutId bailout_id) { 1043 BailoutId bailout_id) {
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 return var->scope()->is_nonlinear() || 1931 return var->scope()->is_nonlinear() ||
1931 var->initializer_position() >= proxy->position(); 1932 var->initializer_position() >= proxy->position();
1932 } 1933 }
1933 1934
1934 1935
1935 #undef __ 1936 #undef __
1936 1937
1937 1938
1938 } // namespace internal 1939 } // namespace internal
1939 } // namespace v8 1940 } // namespace v8
OLDNEW
« no previous file with comments | « src/field-index-inl.h ('k') | src/ic/handler-compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698