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

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: 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
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 16 matching lines...) Expand all
27 // Visiting function for declarations list is overridden. 27 // Visiting function for declarations list is overridden.
28 void VisitDeclarations(ZoneList<Declaration*>* declarations) override; 28 void VisitDeclarations(ZoneList<Declaration*>* declarations) override;
29 29
30 private: 30 private:
31 class ControlScope; 31 class ControlScope;
32 class ControlScopeForIteration; 32 class ControlScopeForIteration;
33 33
34 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 34 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
35 35
36 void VisitArithmeticExpression(BinaryOperation* binop); 36 void VisitArithmeticExpression(BinaryOperation* binop);
37 void VisitCommaExpression(BinaryOperation* binop);
38 void VisitLogicalOrExpression(BinaryOperation* binop);
39 void VisitLogicalAndExpression(BinaryOperation* binop);
37 void VisitPropertyLoad(Register obj, Property* expr); 40 void VisitPropertyLoad(Register obj, Property* expr);
38 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); 41 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot);
39 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); 42 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot);
40 43
41 // Dispatched from VisitUnaryOperation. 44 // Dispatched from VisitUnaryOperation.
42 void VisitVoid(UnaryOperation* expr); 45 void VisitVoid(UnaryOperation* expr);
43 void VisitTypeOf(UnaryOperation* expr); 46 void VisitTypeOf(UnaryOperation* expr);
44 void VisitNot(UnaryOperation* expr); 47 void VisitNot(UnaryOperation* expr);
45 48
46 inline BytecodeArrayBuilder* builder() { return &builder_; } 49 inline BytecodeArrayBuilder* builder() { return &builder_; }
(...skipping 18 matching lines...) Expand all
65 68
66 // TODO(rmcilroy): Encapsulate this in an environment object. 69 // TODO(rmcilroy): Encapsulate this in an environment object.
67 Register current_context_; 70 Register current_context_;
68 }; 71 };
69 72
70 } // namespace interpreter 73 } // namespace interpreter
71 } // namespace internal 74 } // namespace internal
72 } // namespace v8 75 } // namespace v8
73 76
74 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 77 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-generator.cc » ('j') | src/interpreter/bytecode-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698