| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |