| OLD | NEW |
| 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/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/compilation-dependencies.h" | 6 #include "src/compilation-dependencies.h" |
| 7 #include "src/compiler/access-builder.h" | 7 #include "src/compiler/access-builder.h" |
| 8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
| 9 #include "src/compiler/js-typed-lowering.h" | 9 #include "src/compiler/js-typed-lowering.h" |
| 10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2061 context, context, effect); | 2061 context, context, effect); |
| 2062 AllocationBuilder a(jsgraph(), effect, control); | 2062 AllocationBuilder a(jsgraph(), effect, control); |
| 2063 STATIC_ASSERT(Context::MIN_CONTEXT_SLOTS == 4); // Ensure fully covered. | 2063 STATIC_ASSERT(Context::MIN_CONTEXT_SLOTS == 4); // Ensure fully covered. |
| 2064 a.AllocateArray(context_length, factory()->block_context_map()); | 2064 a.AllocateArray(context_length, factory()->block_context_map()); |
| 2065 a.Store(AccessBuilder::ForContextSlot(Context::CLOSURE_INDEX), closure); | 2065 a.Store(AccessBuilder::ForContextSlot(Context::CLOSURE_INDEX), closure); |
| 2066 a.Store(AccessBuilder::ForContextSlot(Context::PREVIOUS_INDEX), context); | 2066 a.Store(AccessBuilder::ForContextSlot(Context::PREVIOUS_INDEX), context); |
| 2067 a.Store(AccessBuilder::ForContextSlot(Context::EXTENSION_INDEX), extension); | 2067 a.Store(AccessBuilder::ForContextSlot(Context::EXTENSION_INDEX), extension); |
| 2068 a.Store(AccessBuilder::ForContextSlot(Context::NATIVE_CONTEXT_INDEX), | 2068 a.Store(AccessBuilder::ForContextSlot(Context::NATIVE_CONTEXT_INDEX), |
| 2069 native_context); | 2069 native_context); |
| 2070 for (int i = Context::MIN_CONTEXT_SLOTS; i < context_length; ++i) { | 2070 for (int i = Context::MIN_CONTEXT_SLOTS; i < context_length; ++i) { |
| 2071 a.Store(AccessBuilder::ForContextSlot(i), jsgraph()->TheHoleConstant()); | 2071 a.Store(AccessBuilder::ForContextSlot(i), jsgraph()->UndefinedConstant()); |
| 2072 } | 2072 } |
| 2073 RelaxControls(node); | 2073 RelaxControls(node); |
| 2074 a.FinishAndChange(node); | 2074 a.FinishAndChange(node); |
| 2075 return Changed(node); | 2075 return Changed(node); |
| 2076 } | 2076 } |
| 2077 | 2077 |
| 2078 return NoChange(); | 2078 return NoChange(); |
| 2079 } | 2079 } |
| 2080 | 2080 |
| 2081 | 2081 |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2852 } | 2852 } |
| 2853 | 2853 |
| 2854 | 2854 |
| 2855 CompilationDependencies* JSTypedLowering::dependencies() const { | 2855 CompilationDependencies* JSTypedLowering::dependencies() const { |
| 2856 return dependencies_; | 2856 return dependencies_; |
| 2857 } | 2857 } |
| 2858 | 2858 |
| 2859 } // namespace compiler | 2859 } // namespace compiler |
| 2860 } // namespace internal | 2860 } // namespace internal |
| 2861 } // namespace v8 | 2861 } // namespace v8 |
| OLD | NEW |