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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 size_t scope_info_index = GetConstantPoolEntry(scope_info); | 585 size_t scope_info_index = GetConstantPoolEntry(scope_info); |
586 OutputCreateCatchContext(exception, name_index, scope_info_index); | 586 OutputCreateCatchContext(exception, name_index, scope_info_index); |
587 return *this; | 587 return *this; |
588 } | 588 } |
589 | 589 |
590 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateFunctionContext(int slots) { | 590 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateFunctionContext(int slots) { |
591 OutputCreateFunctionContext(slots); | 591 OutputCreateFunctionContext(slots); |
592 return *this; | 592 return *this; |
593 } | 593 } |
594 | 594 |
| 595 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateEvalContext(int slots) { |
| 596 OutputCreateEvalContext(slots); |
| 597 return *this; |
| 598 } |
| 599 |
595 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateWithContext( | 600 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateWithContext( |
596 Register object, Handle<ScopeInfo> scope_info) { | 601 Register object, Handle<ScopeInfo> scope_info) { |
597 size_t scope_info_index = GetConstantPoolEntry(scope_info); | 602 size_t scope_info_index = GetConstantPoolEntry(scope_info); |
598 OutputCreateWithContext(object, scope_info_index); | 603 OutputCreateWithContext(object, scope_info_index); |
599 return *this; | 604 return *this; |
600 } | 605 } |
601 | 606 |
602 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArguments( | 607 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArguments( |
603 CreateArgumentsType type) { | 608 CreateArgumentsType type) { |
604 switch (type) { | 609 switch (type) { |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 RegisterList reg_list) { | 1008 RegisterList reg_list) { |
1004 DCHECK(RegisterListIsValid(reg_list)); | 1009 DCHECK(RegisterListIsValid(reg_list)); |
1005 if (register_optimizer_) | 1010 if (register_optimizer_) |
1006 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1011 register_optimizer_->PrepareOutputRegisterList(reg_list); |
1007 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1012 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
1008 } | 1013 } |
1009 | 1014 |
1010 } // namespace interpreter | 1015 } // namespace interpreter |
1011 } // namespace internal | 1016 } // namespace internal |
1012 } // namespace v8 | 1017 } // namespace v8 |
OLD | NEW |