OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |