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

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

Issue 1399773002: [Interpreter] Adds logical and, logical or and comma operators to interpreter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed formatting problems with the expected bytecode initialization 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-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 19 matching lines...) Expand all
30 private: 30 private:
31 class ContextScope; 31 class ContextScope;
32 class ControlScope; 32 class ControlScope;
33 class ControlScopeForIteration; 33 class ControlScopeForIteration;
34 34
35 void MakeBytecodeBody(); 35 void MakeBytecodeBody();
36 36
37 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 37 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
38 38
39 void VisitArithmeticExpression(BinaryOperation* binop); 39 void VisitArithmeticExpression(BinaryOperation* binop);
40 void VisitCommaExpression(BinaryOperation* binop);
41 void VisitLogicalOrExpression(BinaryOperation* binop);
42 void VisitLogicalAndExpression(BinaryOperation* binop);
40 void VisitPropertyLoad(Register obj, Property* expr); 43 void VisitPropertyLoad(Register obj, Property* expr);
41 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); 44 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot);
42 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); 45 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot);
43 void VisitNewLocalFunctionContext(); 46 void VisitNewLocalFunctionContext();
44 47
45 // Dispatched from VisitUnaryOperation. 48 // Dispatched from VisitUnaryOperation.
46 void VisitVoid(UnaryOperation* expr); 49 void VisitVoid(UnaryOperation* expr);
47 void VisitTypeOf(UnaryOperation* expr); 50 void VisitTypeOf(UnaryOperation* expr);
48 void VisitNot(UnaryOperation* expr); 51 void VisitNot(UnaryOperation* expr);
49 52
(...skipping 23 matching lines...) Expand all
73 ControlScope* control_scope_; 76 ControlScope* control_scope_;
74 77
75 Register current_context_; 78 Register current_context_;
76 }; 79 };
77 80
78 } // namespace interpreter 81 } // namespace interpreter
79 } // namespace internal 82 } // namespace internal
80 } // namespace v8 83 } // namespace v8
81 84
82 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 85 #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