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

Side by Side Diff: src/interpreter/bytecode-flags.cc

Issue 2760953002: [builtins] Move more files into v8_builtins_generators source set (Closed)
Patch Set: rebased Created 3 years, 9 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/full-codegen/x87/full-codegen-x87.cc ('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 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/interpreter/bytecode-flags.h" 5 #include "src/interpreter/bytecode-flags.h"
6 6
7 #include "src/ast/ast-value-factory.h" 7 #include "src/ast/ast-value-factory.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/builtins/builtins-constructor.h" 9 #include "src/builtins/builtins-constructor.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 11 matching lines...) Expand all
22 return result; 22 return result;
23 } 23 }
24 24
25 // static 25 // static
26 uint8_t CreateObjectLiteralFlags::Encode(bool fast_clone_supported, 26 uint8_t CreateObjectLiteralFlags::Encode(bool fast_clone_supported,
27 int properties_count, 27 int properties_count,
28 int runtime_flags) { 28 int runtime_flags) {
29 uint8_t result = FlagsBits::encode(runtime_flags); 29 uint8_t result = FlagsBits::encode(runtime_flags);
30 if (fast_clone_supported) { 30 if (fast_clone_supported) {
31 STATIC_ASSERT( 31 STATIC_ASSERT(
32 ConstructorBuiltinsAssembler::kMaximumClonedShallowObjectProperties <= 32 ConstructorBuiltins::kMaximumClonedShallowObjectProperties <=
33 1 << CreateObjectLiteralFlags::FastClonePropertiesCountBits::kShift); 33 1 << CreateObjectLiteralFlags::FastClonePropertiesCountBits::kShift);
34 DCHECK_LE( 34 DCHECK_LE(properties_count,
35 properties_count, 35 ConstructorBuiltins::kMaximumClonedShallowObjectProperties);
36 ConstructorBuiltinsAssembler::kMaximumClonedShallowObjectProperties);
37 result |= CreateObjectLiteralFlags::FastClonePropertiesCountBits::encode( 36 result |= CreateObjectLiteralFlags::FastClonePropertiesCountBits::encode(
38 properties_count); 37 properties_count);
39 } 38 }
40 return result; 39 return result;
41 } 40 }
42 41
43 // static 42 // static
44 uint8_t CreateClosureFlags::Encode(bool pretenure, bool is_function_scope) { 43 uint8_t CreateClosureFlags::Encode(bool pretenure, bool is_function_scope) {
45 uint8_t result = PretenuredBit::encode(pretenure); 44 uint8_t result = PretenuredBit::encode(pretenure);
46 if (!FLAG_always_opt && !FLAG_prepare_always_opt && 45 if (!FLAG_always_opt && !FLAG_prepare_always_opt &&
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 79
81 // static 80 // static
82 TestTypeOfFlags::LiteralFlag TestTypeOfFlags::Decode(uint8_t raw_flag) { 81 TestTypeOfFlags::LiteralFlag TestTypeOfFlags::Decode(uint8_t raw_flag) {
83 DCHECK_LE(raw_flag, static_cast<uint8_t>(LiteralFlag::kOther)); 82 DCHECK_LE(raw_flag, static_cast<uint8_t>(LiteralFlag::kOther));
84 return static_cast<LiteralFlag>(raw_flag); 83 return static_cast<LiteralFlag>(raw_flag);
85 } 84 }
86 85
87 } // namespace interpreter 86 } // namespace interpreter
88 } // namespace internal 87 } // namespace internal
89 } // namespace v8 88 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698