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

Side by Side Diff: src/crankshaft/typing.cc

Issue 1643533003: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 | « src/crankshaft/hydrogen.cc ('k') | src/debug/debug.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/typing.h" 5 #include "src/crankshaft/typing.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/frames.h" 8 #include "src/frames.h"
9 #include "src/frames-inl.h" 9 #include "src/frames-inl.h"
10 #include "src/ostreams.h" 10 #include "src/ostreams.h"
11 #include "src/parsing/parser.h" // for CompileTimeValue; TODO(rossberg): move 11 #include "src/parsing/parser.h" // for CompileTimeValue; TODO(rossberg): move
12 #include "src/splay-tree-inl.h" 12 #include "src/splay-tree-inl.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17
17 AstTyper::AstTyper(Isolate* isolate, Zone* zone, Handle<JSFunction> closure, 18 AstTyper::AstTyper(Isolate* isolate, Zone* zone, Handle<JSFunction> closure,
18 Scope* scope, BailoutId osr_ast_id, FunctionLiteral* root) 19 Scope* scope, BailoutId osr_ast_id, FunctionLiteral* root)
19 : isolate_(isolate), 20 : isolate_(isolate),
20 zone_(zone), 21 zone_(zone),
21 closure_(closure), 22 closure_(closure),
22 scope_(scope), 23 scope_(scope),
23 osr_ast_id_(osr_ast_id), 24 osr_ast_id_(osr_ast_id),
24 root_(root), 25 root_(root),
25 oracle_(isolate, zone, handle(closure->shared()->code()), 26 oracle_(isolate, zone, handle(closure->shared()->code()),
26 handle(closure->feedback_vector()), 27 handle(closure->shared()->feedback_vector()),
27 handle(closure->context()->native_context())), 28 handle(closure->context()->native_context())),
28 store_(zone) { 29 store_(zone) {
29 InitializeAstVisitor(isolate); 30 InitializeAstVisitor(isolate);
30 } 31 }
31 32
32 33
33 #ifdef OBJECT_PRINT 34 #ifdef OBJECT_PRINT
34 static void PrintObserved(Variable* var, Object* value, Type* type) { 35 static void PrintObserved(Variable* var, Object* value, Type* type) {
35 OFStream os(stdout); 36 OFStream os(stdout);
36 os << " observed " << (var->IsParameter() ? "param" : "local") << " "; 37 os << " observed " << (var->IsParameter() ? "param" : "local") << " ";
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { 795 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) {
795 } 796 }
796 797
797 798
798 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { 799 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) {
799 } 800 }
800 801
801 802
802 } // namespace internal 803 } // namespace internal
803 } // namespace v8 804 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698