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

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

Issue 1412683011: [Interpreter] Enable assignments in expressions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Sync test bytecode sequences to avoid unnecessary Ldar/Star instructions. 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 | « src/compiler/bytecode-graph-builder.cc ('k') | 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Load the object at |slot_index| in |context| into the accumulator. 90 // Load the object at |slot_index| in |context| into the accumulator.
91 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index); 91 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index);
92 92
93 // Stores the object in the accumulator into |slot_index| of |context|. 93 // Stores the object in the accumulator into |slot_index| of |context|.
94 BytecodeArrayBuilder& StoreContextSlot(Register context, int slot_index); 94 BytecodeArrayBuilder& StoreContextSlot(Register context, int slot_index);
95 95
96 // Register-accumulator transfers. 96 // Register-accumulator transfers.
97 BytecodeArrayBuilder& LoadAccumulatorWithRegister(Register reg); 97 BytecodeArrayBuilder& LoadAccumulatorWithRegister(Register reg);
98 BytecodeArrayBuilder& StoreAccumulatorInRegister(Register reg); 98 BytecodeArrayBuilder& StoreAccumulatorInRegister(Register reg);
99 99
100 // Register-register transfer.
101 BytecodeArrayBuilder& MoveRegister(Register from, Register to);
102
100 // Named load property. 103 // Named load property.
101 BytecodeArrayBuilder& LoadNamedProperty(Register object, size_t name_index, 104 BytecodeArrayBuilder& LoadNamedProperty(Register object, size_t name_index,
102 int feedback_slot, 105 int feedback_slot,
103 LanguageMode language_mode); 106 LanguageMode language_mode);
104 // Keyed load property. The key should be in the accumulator. 107 // Keyed load property. The key should be in the accumulator.
105 BytecodeArrayBuilder& LoadKeyedProperty(Register object, int feedback_slot, 108 BytecodeArrayBuilder& LoadKeyedProperty(Register object, int feedback_slot,
106 LanguageMode language_mode); 109 LanguageMode language_mode);
107 110
108 // Store properties. The value to be stored should be in the accumulator. 111 // Store properties. The value to be stored should be in the accumulator.
109 BytecodeArrayBuilder& StoreNamedProperty(Register object, size_t name_index, 112 BytecodeArrayBuilder& StoreNamedProperty(Register object, size_t name_index,
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 356
354 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); 357 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope);
355 }; 358 };
356 359
357 360
358 } // namespace interpreter 361 } // namespace interpreter
359 } // namespace internal 362 } // namespace internal
360 } // namespace v8 363 } // namespace v8
361 364
362 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 365 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698