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

Side by Side Diff: src/compiler/js-typed-lowering.cc

Issue 1659663003: Version 4.9.385.15 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.9
Patch Set: Created 4 years, 10 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 | « include/v8-version.h ('k') | src/factory.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/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
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
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
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698