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

Side by Side Diff: src/builtins/builtins-constructor.cc

Issue 2608333002: [cleanup] remove sloppy generator/async function maps (Closed)
Patch Set: [cleanup] remove sloppy generator/async function maps Created 3 years, 11 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/bootstrapper.cc ('k') | src/contexts.h » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/builtins/builtins-constructor.h" 5 #include "src/builtins/builtins-constructor.h"
6 #include "src/ast/ast.h" 6 #include "src/ast/ast.h"
7 #include "src/builtins/builtins-utils.h" 7 #include "src/builtins/builtins-utils.h"
8 #include "src/builtins/builtins.h" 8 #include "src/builtins/builtins.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 Bind(&if_normal); 77 Bind(&if_normal);
78 { 78 {
79 map_index.Bind(SelectIntPtrConstant(is_strict, 79 map_index.Bind(SelectIntPtrConstant(is_strict,
80 Context::STRICT_FUNCTION_MAP_INDEX, 80 Context::STRICT_FUNCTION_MAP_INDEX,
81 Context::SLOPPY_FUNCTION_MAP_INDEX)); 81 Context::SLOPPY_FUNCTION_MAP_INDEX));
82 Goto(&load_map); 82 Goto(&load_map);
83 } 83 }
84 84
85 Bind(&if_generator); 85 Bind(&if_generator);
86 { 86 {
87 map_index.Bind(SelectIntPtrConstant( 87 map_index.Bind(IntPtrConstant(Context::GENERATOR_FUNCTION_MAP_INDEX));
88 is_strict, Context::STRICT_GENERATOR_FUNCTION_MAP_INDEX,
89 Context::SLOPPY_GENERATOR_FUNCTION_MAP_INDEX));
90 Goto(&load_map); 88 Goto(&load_map);
91 } 89 }
92 90
93 Bind(&if_async); 91 Bind(&if_async);
94 { 92 {
95 map_index.Bind(SelectIntPtrConstant( 93 map_index.Bind(IntPtrConstant(Context::ASYNC_FUNCTION_MAP_INDEX));
96 is_strict, Context::STRICT_ASYNC_FUNCTION_MAP_INDEX,
97 Context::SLOPPY_ASYNC_FUNCTION_MAP_INDEX));
98 Goto(&load_map); 94 Goto(&load_map);
99 } 95 }
100 96
101 Bind(&if_class_constructor); 97 Bind(&if_class_constructor);
102 { 98 {
103 map_index.Bind(IntPtrConstant(Context::CLASS_FUNCTION_MAP_INDEX)); 99 map_index.Bind(IntPtrConstant(Context::CLASS_FUNCTION_MAP_INDEX));
104 Goto(&load_map); 100 Goto(&load_map);
105 } 101 }
106 102
107 Bind(&if_function_without_prototype); 103 Bind(&if_function_without_prototype);
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 case 6: 759 case 6:
764 return FastCloneShallowObject6(); 760 return FastCloneShallowObject6();
765 default: 761 default:
766 UNREACHABLE(); 762 UNREACHABLE();
767 } 763 }
768 return Handle<Code>::null(); 764 return Handle<Code>::null();
769 } 765 }
770 766
771 } // namespace internal 767 } // namespace internal
772 } // namespace v8 768 } // namespace v8
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698