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

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

Issue 1697473002: [interpreter] Add bytecodes for JumpIfNotHole with constant (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 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/ast.h" 8 #include "src/ast/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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot, 71 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot,
72 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 72 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
73 void VisitVariableLoadForAccumulatorValue( 73 void VisitVariableLoadForAccumulatorValue(
74 Variable* variable, FeedbackVectorSlot slot, 74 Variable* variable, FeedbackVectorSlot slot,
75 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 75 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
76 MUST_USE_RESULT Register 76 MUST_USE_RESULT Register
77 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot, 77 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot,
78 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 78 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
79 void VisitVariableAssignment(Variable* variable, Token::Value op, 79 void VisitVariableAssignment(Variable* variable, Token::Value op,
80 FeedbackVectorSlot slot); 80 FeedbackVectorSlot slot);
81
81 void BuildThrowIfHole(Handle<String> name); 82 void BuildThrowIfHole(Handle<String> name);
82 void BuildThrowIfNotHole(Handle<String> name); 83 void BuildThrowIfNotHole(Handle<String> name);
83 void BuildThrowReassignConstant(Handle<String> name); 84 void BuildThrowReassignConstant(Handle<String> name);
85 void BuildThrowReferenceError(Handle<String> name);
84 void BuildHoleCheckForVariableLoad(VariableMode mode, Handle<String> name); 86 void BuildHoleCheckForVariableLoad(VariableMode mode, Handle<String> name);
85 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); 87 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op);
86 88
87 void VisitArgumentsObject(Variable* variable); 89 void VisitArgumentsObject(Variable* variable);
88 void VisitRestArgumentsArray(Variable* rest); 90 void VisitRestArgumentsArray(Variable* rest);
89 void VisitClassLiteralContents(ClassLiteral* expr); 91 void VisitClassLiteralContents(ClassLiteral* expr);
90 void VisitClassLiteralForRuntimeDefinition(ClassLiteral* expr); 92 void VisitClassLiteralForRuntimeDefinition(ClassLiteral* expr);
91 void VisitClassLiteralProperties(ClassLiteral* expr, Register literal, 93 void VisitClassLiteralProperties(ClassLiteral* expr, Register literal,
92 Register prototype); 94 Register prototype);
93 void VisitClassLiteralStaticPrototypeWithComputedName(Register name); 95 void VisitClassLiteralStaticPrototypeWithComputedName(Register name);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 RegisterAllocationScope* register_allocator_; 178 RegisterAllocationScope* register_allocator_;
177 int try_catch_nesting_level_; 179 int try_catch_nesting_level_;
178 int try_finally_nesting_level_; 180 int try_finally_nesting_level_;
179 }; 181 };
180 182
181 } // namespace interpreter 183 } // namespace interpreter
182 } // namespace internal 184 } // namespace internal
183 } // namespace v8 185 } // namespace v8
184 186
185 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 187 #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