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

Side by Side Diff: src/interpreter/bytecodes.h

Issue 1604923002: [Interpreter] Always store current context in the frames context slot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_fix_block_context_scope
Patch Set: Rebase Created 4 years, 11 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-generator.cc ('k') | src/interpreter/bytecodes.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_BYTECODES_H_ 5 #ifndef V8_INTERPRETER_BYTECODES_H_
6 #define V8_INTERPRETER_BYTECODES_H_ 6 #define V8_INTERPRETER_BYTECODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 // Clients of this interface shouldn't depend on lots of interpreter internals. 10 // Clients of this interface shouldn't depend on lots of interpreter internals.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 bool is_valid() const { return index_ != kIllegalIndex; } 301 bool is_valid() const { return index_ != kIllegalIndex; }
302 302
303 static Register FromParameterIndex(int index, int parameter_count); 303 static Register FromParameterIndex(int index, int parameter_count);
304 int ToParameterIndex(int parameter_count) const; 304 int ToParameterIndex(int parameter_count) const;
305 static int MaxParameterIndex(); 305 static int MaxParameterIndex();
306 306
307 // Returns the register for the function's closure object. 307 // Returns the register for the function's closure object.
308 static Register function_closure(); 308 static Register function_closure();
309 bool is_function_closure() const; 309 bool is_function_closure() const;
310 310
311 // Returns the register for the function's outer context. 311 // Returns the register which holds the current context object.
312 static Register function_context(); 312 static Register current_context();
313 bool is_function_context() const; 313 bool is_current_context() const;
314 314
315 // Returns the register for the incoming new target value. 315 // Returns the register for the incoming new target value.
316 static Register new_target(); 316 static Register new_target();
317 bool is_new_target() const; 317 bool is_new_target() const;
318 318
319 static Register FromOperand(uint8_t operand); 319 static Register FromOperand(uint8_t operand);
320 uint8_t ToOperand() const; 320 uint8_t ToOperand() const;
321 321
322 static Register FromWideOperand(uint16_t operand); 322 static Register FromWideOperand(uint16_t operand);
323 uint16_t ToWideOperand() const; 323 uint16_t ToWideOperand() const;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 440
441 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 441 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
442 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 442 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
443 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type); 443 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_type);
444 444
445 } // namespace interpreter 445 } // namespace interpreter
446 } // namespace internal 446 } // namespace internal
447 } // namespace v8 447 } // namespace v8
448 448
449 #endif // V8_INTERPRETER_BYTECODES_H_ 449 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698