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

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

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Changes from review Created 4 years 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 size_t scope_info_index = GetConstantPoolEntry(scope_info); 598 size_t scope_info_index = GetConstantPoolEntry(scope_info);
599 OutputCreateCatchContext(exception, name_index, scope_info_index); 599 OutputCreateCatchContext(exception, name_index, scope_info_index);
600 return *this; 600 return *this;
601 } 601 }
602 602
603 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateFunctionContext(int slots) { 603 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateFunctionContext(int slots) {
604 OutputCreateFunctionContext(slots); 604 OutputCreateFunctionContext(slots);
605 return *this; 605 return *this;
606 } 606 }
607 607
608 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateEvalContext(int slots) {
609 OutputCreateEvalContext(slots);
610 return *this;
611 }
612
608 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateWithContext( 613 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateWithContext(
609 Register object, Handle<ScopeInfo> scope_info) { 614 Register object, Handle<ScopeInfo> scope_info) {
610 size_t scope_info_index = GetConstantPoolEntry(scope_info); 615 size_t scope_info_index = GetConstantPoolEntry(scope_info);
611 OutputCreateWithContext(object, scope_info_index); 616 OutputCreateWithContext(object, scope_info_index);
612 return *this; 617 return *this;
613 } 618 }
614 619
615 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArguments( 620 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArguments(
616 CreateArgumentsType type) { 621 CreateArgumentsType type) {
617 switch (type) { 622 switch (type) {
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 RegisterList reg_list) { 1039 RegisterList reg_list) {
1035 DCHECK(RegisterListIsValid(reg_list)); 1040 DCHECK(RegisterListIsValid(reg_list));
1036 if (register_optimizer_) 1041 if (register_optimizer_)
1037 register_optimizer_->PrepareOutputRegisterList(reg_list); 1042 register_optimizer_->PrepareOutputRegisterList(reg_list);
1038 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1043 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1039 } 1044 }
1040 1045
1041 } // namespace interpreter 1046 } // namespace interpreter
1042 } // namespace internal 1047 } // namespace internal
1043 } // namespace v8 1048 } // 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