| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |