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

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 7 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
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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/ast-loop-assignment-analyzer.h" 9 #include "src/compiler/ast-loop-assignment-analyzer.h"
10 #include "src/compiler/control-builders.h" 10 #include "src/compiler/control-builders.h"
(...skipping 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after
3102 } 3102 }
3103 3103
3104 3104
3105 LanguageMode AstGraphBuilder::language_mode() const { 3105 LanguageMode AstGraphBuilder::language_mode() const {
3106 return current_scope()->language_mode(); 3106 return current_scope()->language_mode();
3107 } 3107 }
3108 3108
3109 3109
3110 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( 3110 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair(
3111 FeedbackVectorSlot slot) const { 3111 FeedbackVectorSlot slot) const {
3112 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); 3112 return VectorSlotPair(handle(info()->closure()->feedback_vector()), slot);
3113 } 3113 }
3114 3114
3115 3115
3116 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { 3116 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) {
3117 Visit(node->expression()); 3117 Visit(node->expression());
3118 } 3118 }
3119 3119
3120 3120
3121 namespace { 3121 namespace {
3122 3122
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
4358 // Phi does not exist yet, introduce one. 4358 // Phi does not exist yet, introduce one.
4359 value = NewPhi(inputs, value, control); 4359 value = NewPhi(inputs, value, control);
4360 value->ReplaceInput(inputs - 1, other); 4360 value->ReplaceInput(inputs - 1, other);
4361 } 4361 }
4362 return value; 4362 return value;
4363 } 4363 }
4364 4364
4365 } // namespace compiler 4365 } // namespace compiler
4366 } // namespace internal 4366 } // namespace internal
4367 } // namespace v8 4367 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698