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

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

Issue 2165953002: [interpreter] Add a register operand to ToNumber (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: regenerate bytecode expectations Created 4 years, 5 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 | « no previous file | src/interpreter/bytecode-array-builder.cc » ('j') | src/interpreter/bytecodes.h » ('J')
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 "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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // the key to be deleted and the register contains a reference to the object. 208 // the key to be deleted and the register contains a reference to the object.
209 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode); 209 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode);
210 210
211 // Tests. 211 // Tests.
212 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg); 212 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg);
213 213
214 // Casts. 214 // Casts.
215 BytecodeArrayBuilder& CastAccumulatorToBoolean(); 215 BytecodeArrayBuilder& CastAccumulatorToBoolean();
216 BytecodeArrayBuilder& CastAccumulatorToJSObject(); 216 BytecodeArrayBuilder& CastAccumulatorToJSObject();
217 BytecodeArrayBuilder& CastAccumulatorToName(); 217 BytecodeArrayBuilder& CastAccumulatorToName();
218 BytecodeArrayBuilder& CastAccumulatorToNumber(); 218 BytecodeArrayBuilder& CastAccumulatorToNumber(Register out);
rmcilroy 2016/07/21 09:31:48 Can you add a comment that this doesn't update the
klaasb 2016/07/21 10:55:19 Done.
219 219
220 // Flow Control. 220 // Flow Control.
221 BytecodeArrayBuilder& Bind(BytecodeLabel* label); 221 BytecodeArrayBuilder& Bind(BytecodeLabel* label);
222 BytecodeArrayBuilder& Bind(const BytecodeLabel& target, BytecodeLabel* label); 222 BytecodeArrayBuilder& Bind(const BytecodeLabel& target, BytecodeLabel* label);
223 223
224 BytecodeArrayBuilder& Jump(BytecodeLabel* label); 224 BytecodeArrayBuilder& Jump(BytecodeLabel* label);
225 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); 225 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label);
226 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); 226 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label);
227 BytecodeArrayBuilder& JumpIfNotHole(BytecodeLabel* label); 227 BytecodeArrayBuilder& JumpIfNotHole(BytecodeLabel* label);
228 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); 228 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 BytecodeSourceInfo latest_source_info_; 371 BytecodeSourceInfo latest_source_info_;
372 372
373 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 373 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
374 }; 374 };
375 375
376 } // namespace interpreter 376 } // namespace interpreter
377 } // namespace internal 377 } // namespace internal
378 } // namespace v8 378 } // namespace v8
379 379
380 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 380 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-array-builder.cc » ('j') | src/interpreter/bytecodes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698