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

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

Issue 1410953003: [Interpreter] Adds delete operator to interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 <vector> 8 #include <vector>
9 9
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id, 128 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id,
129 Register first_arg, size_t arg_count); 129 Register first_arg, size_t arg_count);
130 130
131 // Operators (register holds the lhs value, accumulator holds the rhs value). 131 // Operators (register holds the lhs value, accumulator holds the rhs value).
132 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg, 132 BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg,
133 Strength strength); 133 Strength strength);
134 134
135 // Unary Operators. 135 // Unary Operators.
136 BytecodeArrayBuilder& LogicalNot(); 136 BytecodeArrayBuilder& LogicalNot();
137 BytecodeArrayBuilder& TypeOf(); 137 BytecodeArrayBuilder& TypeOf();
138 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode);
rmcilroy 2015/10/21 14:52:54 add a comment saying the "key" is expected to be i
mythria 2015/10/23 14:48:00 Done.
138 139
139 // Tests. 140 // Tests.
140 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, 141 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg,
141 Strength strength); 142 Strength strength);
142 143
143 // Casts 144 // Casts
144 BytecodeArrayBuilder& CastAccumulatorToBoolean(); 145 BytecodeArrayBuilder& CastAccumulatorToBoolean();
145 BytecodeArrayBuilder& CastAccumulatorToName(); 146 BytecodeArrayBuilder& CastAccumulatorToName();
146 147
147 // Flow Control. 148 // Flow Control.
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 288
288 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); 289 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope);
289 }; 290 };
290 291
291 292
292 } // namespace interpreter 293 } // namespace interpreter
293 } // namespace internal 294 } // namespace internal
294 } // namespace v8 295 } // namespace v8
295 296
296 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 297 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698