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

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

Issue 2302163003: [interpreter] Clarify some names and comments. (Closed)
Patch Set: Created 4 years, 3 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/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" 9 #include "src/interpreter/bytecode-dead-code-optimizer.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 BytecodeArrayBuilder& BytecodeArrayBuilder::PushContext(Register context) { 408 BytecodeArrayBuilder& BytecodeArrayBuilder::PushContext(Register context) {
409 Output(Bytecode::kPushContext, RegisterOperand(context)); 409 Output(Bytecode::kPushContext, RegisterOperand(context));
410 return *this; 410 return *this;
411 } 411 }
412 412
413 BytecodeArrayBuilder& BytecodeArrayBuilder::PopContext(Register context) { 413 BytecodeArrayBuilder& BytecodeArrayBuilder::PopContext(Register context) {
414 Output(Bytecode::kPopContext, RegisterOperand(context)); 414 Output(Bytecode::kPopContext, RegisterOperand(context));
415 return *this; 415 return *this;
416 } 416 }
417 417
418 BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToJSObject( 418 BytecodeArrayBuilder& BytecodeArrayBuilder::ConvertAccumulatorToObject(
419 Register out) { 419 Register out) {
420 Output(Bytecode::kToObject, RegisterOperand(out)); 420 Output(Bytecode::kToObject, RegisterOperand(out));
421 return *this; 421 return *this;
422 } 422 }
423 423
424 BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToName( 424 BytecodeArrayBuilder& BytecodeArrayBuilder::ConvertAccumulatorToName(
425 Register out) { 425 Register out) {
426 Output(Bytecode::kToName, RegisterOperand(out)); 426 Output(Bytecode::kToName, RegisterOperand(out));
427 return *this; 427 return *this;
428 } 428 }
429 429
430 BytecodeArrayBuilder& BytecodeArrayBuilder::CastAccumulatorToNumber( 430 BytecodeArrayBuilder& BytecodeArrayBuilder::ConvertAccumulatorToNumber(
431 Register out) { 431 Register out) {
432 Output(Bytecode::kToNumber, RegisterOperand(out)); 432 Output(Bytecode::kToNumber, RegisterOperand(out));
433 return *this; 433 return *this;
434 } 434 }
435 435
436 BytecodeArrayBuilder& BytecodeArrayBuilder::Bind(BytecodeLabel* label) { 436 BytecodeArrayBuilder& BytecodeArrayBuilder::Bind(BytecodeLabel* label) {
437 pipeline_->BindLabel(label); 437 pipeline_->BindLabel(label);
438 LeaveBasicBlock(); 438 LeaveBasicBlock();
439 return *this; 439 return *this;
440 } 440 }
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 return Bytecode::kTailCall; 990 return Bytecode::kTailCall;
991 default: 991 default:
992 UNREACHABLE(); 992 UNREACHABLE();
993 } 993 }
994 return Bytecode::kIllegal; 994 return Bytecode::kIllegal;
995 } 995 }
996 996
997 } // namespace interpreter 997 } // namespace interpreter
998 } // namespace internal 998 } // namespace internal
999 } // namespace v8 999 } // 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