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

Side by Side Diff: src/typing.h

Issue 1387383005: Eagerly extract stack limit from Isolate in InitializeAstVisitor() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/interpreter/bytecode-generator.cc ('k') | src/typing.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 #ifndef V8_TYPING_H_ 5 #ifndef V8_TYPING_H_
6 #define V8_TYPING_H_ 6 #define V8_TYPING_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/effects.h" 10 #include "src/effects.h"
(...skipping 15 matching lines...) Expand all
26 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 26 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
27 27
28 private: 28 private:
29 Effect ObservedOnStack(Object* value); 29 Effect ObservedOnStack(Object* value);
30 void ObserveTypesAtOsrEntry(IterationStatement* stmt); 30 void ObserveTypesAtOsrEntry(IterationStatement* stmt);
31 31
32 static const int kNoVar = INT_MIN; 32 static const int kNoVar = INT_MIN;
33 typedef v8::internal::Effects<int, kNoVar> Effects; 33 typedef v8::internal::Effects<int, kNoVar> Effects;
34 typedef v8::internal::NestedEffects<int, kNoVar> Store; 34 typedef v8::internal::NestedEffects<int, kNoVar> Store;
35 35
36 Isolate* isolate_;
36 Handle<JSFunction> closure_; 37 Handle<JSFunction> closure_;
37 Scope* scope_; 38 Scope* scope_;
38 BailoutId osr_ast_id_; 39 BailoutId osr_ast_id_;
39 FunctionLiteral* root_; 40 FunctionLiteral* root_;
40 TypeFeedbackOracle oracle_; 41 TypeFeedbackOracle oracle_;
41 Store store_; 42 Store store_;
42 43
43 TypeFeedbackOracle* oracle() { return &oracle_; } 44 TypeFeedbackOracle* oracle() { return &oracle_; }
44 45
45 void NarrowType(Expression* e, Bounds b) { 46 void NarrowType(Expression* e, Bounds b) {
(...skipping 27 matching lines...) Expand all
73 AST_NODE_LIST(DECLARE_VISIT) 74 AST_NODE_LIST(DECLARE_VISIT)
74 #undef DECLARE_VISIT 75 #undef DECLARE_VISIT
75 76
76 DISALLOW_COPY_AND_ASSIGN(AstTyper); 77 DISALLOW_COPY_AND_ASSIGN(AstTyper);
77 }; 78 };
78 79
79 } // namespace internal 80 } // namespace internal
80 } // namespace v8 81 } // namespace v8
81 82
82 #endif // V8_TYPING_H_ 83 #endif // V8_TYPING_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698