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

Side by Side Diff: src/interpreter/bytecode-generator.h

Issue 1422443006: [Intepreter] Don't throw reference errors for globals in typeof. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 years, 1 month 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-array-builder.cc ('k') | src/interpreter/bytecode-generator.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_INTERPRETER_BYTECODE_GENERATOR_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_
6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ 6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_
7 7
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/interpreter/bytecode-array-builder.h" 9 #include "src/interpreter/bytecode-array-builder.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void VisitTypeOf(UnaryOperation* expr); 53 void VisitTypeOf(UnaryOperation* expr);
54 void VisitNot(UnaryOperation* expr); 54 void VisitNot(UnaryOperation* expr);
55 void VisitDelete(UnaryOperation* expr); 55 void VisitDelete(UnaryOperation* expr);
56 56
57 // Helper visitors which perform common operations. 57 // Helper visitors which perform common operations.
58 Register VisitArguments(ZoneList<Expression*>* arguments); 58 Register VisitArguments(ZoneList<Expression*>* arguments);
59 59
60 void VisitPropertyLoad(Register obj, Property* expr); 60 void VisitPropertyLoad(Register obj, Property* expr);
61 void VisitPropertyLoadForAccumulator(Register obj, Property* expr); 61 void VisitPropertyLoadForAccumulator(Register obj, Property* expr);
62 62
63 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); 63 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot,
64 void VisitVariableLoadForAccumulatorValue(Variable* variable, 64 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
65 FeedbackVectorSlot slot); 65 void VisitVariableLoadForAccumulatorValue(
66 MUST_USE_RESULT Register VisitVariableLoadForRegisterValue( 66 Variable* variable, FeedbackVectorSlot slot,
67 Variable* variable, FeedbackVectorSlot slot); 67 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
68 MUST_USE_RESULT Register
69 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot,
70 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
68 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); 71 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot);
69 72
70 void VisitArgumentsObject(Variable* variable); 73 void VisitArgumentsObject(Variable* variable);
71 void VisitThisFunctionVariable(Variable* variable); 74 void VisitThisFunctionVariable(Variable* variable);
72 void VisitNewTargetVariable(Variable* variable); 75 void VisitNewTargetVariable(Variable* variable);
73 void VisitNewLocalFunctionContext(); 76 void VisitNewLocalFunctionContext();
74 void VisitBuildLocalActivationContext(); 77 void VisitBuildLocalActivationContext();
75 void VisitNewLocalBlockContext(Scope* scope); 78 void VisitNewLocalBlockContext(Scope* scope);
76 void VisitFunctionClosureForContext(); 79 void VisitFunctionClosureForContext();
77 void VisitSetHomeObject(Register value, Register home_object, 80 void VisitSetHomeObject(Register value, Register home_object,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 139
137 int binary_expression_depth_; 140 int binary_expression_depth_;
138 ZoneSet<int> binary_expression_hazard_set_; 141 ZoneSet<int> binary_expression_hazard_set_;
139 }; 142 };
140 143
141 } // namespace interpreter 144 } // namespace interpreter
142 } // namespace internal 145 } // namespace internal
143 } // namespace v8 146 } // namespace v8
144 147
145 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 148 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698