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

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

Issue 2169813002: [interpreter] Add output register to ToName (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@addregouts
Patch Set: comments Created 4 years, 4 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 | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.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 #include "src/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-dead-code-optimizer.h" 10 #include "src/interpreter/bytecode-dead-code-optimizer.h"
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 BytecodeArrayBuilder& BytecodeArrayBuilder::PopContext(Register context) { 375 BytecodeArrayBuilder& BytecodeArrayBuilder::PopContext(Register context) {
376 Output(Bytecode::kPopContext, RegisterOperand(context)); 376 Output(Bytecode::kPopContext, RegisterOperand(context));
377 return *this; 377 return *this;
378 } 378 }
379 379
380 BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToJSObject() { 380 BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToJSObject() {
381 Output(Bytecode::kToObject); 381 Output(Bytecode::kToObject);
382 return *this; 382 return *this;
383 } 383 }
384 384
385 BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToName() { 385 BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToName(
386 Output(Bytecode::kToName); 386 Register out) {
387 Output(Bytecode::kToName, RegisterOperand(out));
387 return *this; 388 return *this;
388 } 389 }
389 390
390 BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToNumber( 391 BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToNumber(
391 Register out) { 392 Register out) {
392 Output(Bytecode::kToNumber, RegisterOperand(out)); 393 Output(Bytecode::kToNumber, RegisterOperand(out));
393 return *this; 394 return *this;
394 } 395 }
395 396
396 BytecodeArrayBuilder& BytecodeArrayBuilder::Bind(BytecodeLabel* label) { 397 BytecodeArrayBuilder& BytecodeArrayBuilder::Bind(BytecodeLabel* label) {
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 return Bytecode::kTailCall; 934 return Bytecode::kTailCall;
934 default: 935 default:
935 UNREACHABLE(); 936 UNREACHABLE();
936 } 937 }
937 return Bytecode::kIllegal; 938 return Bytecode::kIllegal;
938 } 939 }
939 940
940 } // namespace interpreter 941 } // namespace interpreter
941 } // namespace internal 942 } // namespace internal
942 } // namespace v8 943 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698