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

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

Issue 1985753002: [interpreter] Introduce fused bytecodes for common sequences. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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_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 "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-register-allocator.h" 10 #include "src/interpreter/bytecode-register-allocator.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 static uint32_t SignedOperand(int value, OperandSize size); 278 static uint32_t SignedOperand(int value, OperandSize size);
279 static uint32_t UnsignedOperand(int value); 279 static uint32_t UnsignedOperand(int value);
280 static uint32_t UnsignedOperand(size_t value); 280 static uint32_t UnsignedOperand(size_t value);
281 281
282 private: 282 private:
283 friend class BytecodeRegisterAllocator; 283 friend class BytecodeRegisterAllocator;
284 284
285 static Bytecode BytecodeForBinaryOperation(Token::Value op); 285 static Bytecode BytecodeForBinaryOperation(Token::Value op);
286 static Bytecode BytecodeForCountOperation(Token::Value op); 286 static Bytecode BytecodeForCountOperation(Token::Value op);
287 static Bytecode BytecodeForCompareOperation(Token::Value op); 287 static Bytecode BytecodeForCompareOperation(Token::Value op);
288 static Bytecode BytecodeForStoreIC(LanguageMode language_mode); 288 static Bytecode BytecodeForStaNamedProperty(LanguageMode language_mode);
289 static Bytecode BytecodeForKeyedStoreIC(LanguageMode language_mode); 289 static Bytecode BytecodeForStaKeyedProperty(LanguageMode language_mode);
290 static Bytecode BytecodeForLoadGlobal(TypeofMode typeof_mode); 290 static Bytecode BytecodeForLoadGlobal(TypeofMode typeof_mode);
291 static Bytecode BytecodeForStoreGlobal(LanguageMode language_mode); 291 static Bytecode BytecodeForStoreGlobal(LanguageMode language_mode);
292 static Bytecode BytecodeForStoreLookupSlot(LanguageMode language_mode); 292 static Bytecode BytecodeForStoreLookupSlot(LanguageMode language_mode);
293 static Bytecode BytecodeForCreateArguments(CreateArgumentsType type); 293 static Bytecode BytecodeForCreateArguments(CreateArgumentsType type);
294 static Bytecode BytecodeForDelete(LanguageMode language_mode); 294 static Bytecode BytecodeForDelete(LanguageMode language_mode);
295 static Bytecode BytecodeForCall(TailCallMode tail_call_mode); 295 static Bytecode BytecodeForCall(TailCallMode tail_call_mode);
296 296
297 static Bytecode GetJumpWithConstantOperand(Bytecode jump_smi8_operand); 297 static Bytecode GetJumpWithConstantOperand(Bytecode jump_smi8_operand);
298 298
299 void Output(Bytecode bytecode); 299 void Output(Bytecode bytecode);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 size_t offset_; 414 size_t offset_;
415 415
416 friend class BytecodeArrayBuilder; 416 friend class BytecodeArrayBuilder;
417 }; 417 };
418 418
419 } // namespace interpreter 419 } // namespace interpreter
420 } // namespace internal 420 } // namespace internal
421 } // namespace v8 421 } // namespace v8
422 422
423 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 423 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698