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

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

Issue 1402943002: [Interpreter] Support for operator new. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: One more test. 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 18 matching lines...) Expand all
29 29
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 Register VisitArguments(ZoneList<Expression*>* arguments,
40 TemporaryRegisterScope* caller_scope);
39 void VisitArithmeticExpression(BinaryOperation* binop); 41 void VisitArithmeticExpression(BinaryOperation* binop);
40 void VisitPropertyLoad(Register obj, Property* expr); 42 void VisitPropertyLoad(Register obj, Property* expr);
41 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); 43 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot);
42 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); 44 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot);
43 void VisitNewLocalFunctionContext(); 45 void VisitNewLocalFunctionContext();
44 void VisitSetHomeObject(Register value, Register home_object, 46 void VisitSetHomeObject(Register value, Register home_object,
45 ObjectLiteralProperty* property, int slot_number = 0); 47 ObjectLiteralProperty* property, int slot_number = 0);
46 void VisitObjectLiteralAccessor(Register home_object, 48 void VisitObjectLiteralAccessor(Register home_object,
47 ObjectLiteralProperty* property, 49 ObjectLiteralProperty* property,
48 Register value_out); 50 Register value_out);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ControlScope* control_scope_; 83 ControlScope* control_scope_;
82 84
83 Register current_context_; 85 Register current_context_;
84 }; 86 };
85 87
86 } // namespace interpreter 88 } // namespace interpreter
87 } // namespace internal 89 } // namespace internal
88 } // namespace v8 90 } // namespace v8
89 91
90 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 92 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698