| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/compiler/bytecode-graph-builder.h" | 5 #include "src/compiler/bytecode-graph-builder.h" |
| 6 | 6 |
| 7 #include "src/compiler/bytecode-branch-analysis.h" | 7 #include "src/compiler/bytecode-branch-analysis.h" |
| 8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
| 9 #include "src/compiler/operator-properties.h" | 9 #include "src/compiler/operator-properties.h" |
| 10 #include "src/interpreter/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 void BytecodeGraphBuilder::VisitKeyedStoreICSloppyWide() { | 957 void BytecodeGraphBuilder::VisitKeyedStoreICSloppyWide() { |
| 958 DCHECK(is_sloppy(language_mode())); | 958 DCHECK(is_sloppy(language_mode())); |
| 959 BuildKeyedStore(); | 959 BuildKeyedStore(); |
| 960 } | 960 } |
| 961 | 961 |
| 962 void BytecodeGraphBuilder::VisitKeyedStoreICStrictWide() { | 962 void BytecodeGraphBuilder::VisitKeyedStoreICStrictWide() { |
| 963 DCHECK(is_strict(language_mode())); | 963 DCHECK(is_strict(language_mode())); |
| 964 BuildKeyedStore(); | 964 BuildKeyedStore(); |
| 965 } | 965 } |
| 966 | 966 |
| 967 void BytecodeGraphBuilder::VisitLdaInitialMap() { |
| 968 Node* js_function = environment()->LookupAccumulator(); |
| 969 Node* load = BuildLoadObjectField(js_function, |
| 970 JSFunction::kPrototypeOrInitialMapOffset); |
| 971 environment()->BindAccumulator(load); |
| 972 } |
| 973 |
| 967 void BytecodeGraphBuilder::VisitPushContext() { | 974 void BytecodeGraphBuilder::VisitPushContext() { |
| 968 Node* new_context = environment()->LookupAccumulator(); | 975 Node* new_context = environment()->LookupAccumulator(); |
| 969 environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0), | 976 environment()->BindRegister(bytecode_iterator().GetRegisterOperand(0), |
| 970 environment()->Context()); | 977 environment()->Context()); |
| 971 environment()->SetContext(new_context); | 978 environment()->SetContext(new_context); |
| 972 } | 979 } |
| 973 | 980 |
| 974 void BytecodeGraphBuilder::VisitPopContext() { | 981 void BytecodeGraphBuilder::VisitPopContext() { |
| 975 Node* context = | 982 Node* context = |
| 976 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0)); | 983 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0)); |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1831 // Phi does not exist yet, introduce one. | 1838 // Phi does not exist yet, introduce one. |
| 1832 value = NewPhi(inputs, value, control); | 1839 value = NewPhi(inputs, value, control); |
| 1833 value->ReplaceInput(inputs - 1, other); | 1840 value->ReplaceInput(inputs - 1, other); |
| 1834 } | 1841 } |
| 1835 return value; | 1842 return value; |
| 1836 } | 1843 } |
| 1837 | 1844 |
| 1838 } // namespace compiler | 1845 } // namespace compiler |
| 1839 } // namespace internal | 1846 } // namespace internal |
| 1840 } // namespace v8 | 1847 } // namespace v8 |
| OLD | NEW |