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

Side by Side Diff: src/interpreter/bytecode-array-builder.h

Issue 1435283002: [Interpreter] Adds an optimization to remove redundant Ldar/Star. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased the patch Created 5 years, 1 month 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 | « no previous file | src/interpreter/bytecode-array-builder.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_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 ZoneVector<uint8_t>::iterator jump_location); 244 ZoneVector<uint8_t>::iterator jump_location);
245 245
246 void LeaveBasicBlock(); 246 void LeaveBasicBlock();
247 void EnsureReturn(); 247 void EnsureReturn();
248 248
249 bool OperandIsValid(Bytecode bytecode, int operand_index, 249 bool OperandIsValid(Bytecode bytecode, int operand_index,
250 uint32_t operand_value) const; 250 uint32_t operand_value) const;
251 bool LastBytecodeInSameBlock() const; 251 bool LastBytecodeInSameBlock() const;
252 252
253 bool NeedToBooleanCast(); 253 bool NeedToBooleanCast();
254 bool IsRegisterInAccumulator(Register reg);
254 255
255 int BorrowTemporaryRegister(); 256 int BorrowTemporaryRegister();
256 void ReturnTemporaryRegister(int reg_index); 257 void ReturnTemporaryRegister(int reg_index);
257 int PrepareForConsecutiveTemporaryRegisters(size_t count); 258 int PrepareForConsecutiveTemporaryRegisters(size_t count);
258 void BorrowConsecutiveTemporaryRegister(int reg_index); 259 void BorrowConsecutiveTemporaryRegister(int reg_index);
259 bool TemporaryRegisterIsLive(Register reg) const; 260 bool TemporaryRegisterIsLive(Register reg) const;
260 261
261 Register first_temporary_register() const; 262 Register first_temporary_register() const;
262 Register last_temporary_register() const; 263 Register last_temporary_register() const;
263 264
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 351
351 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); 352 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope);
352 }; 353 };
353 354
354 355
355 } // namespace interpreter 356 } // namespace interpreter
356 } // namespace internal 357 } // namespace internal
357 } // namespace v8 358 } // namespace v8
358 359
359 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 360 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698