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

Side by Side Diff: src/objects.h

Issue 2629143002: [runtime] Remove SharedFunctionInfo::is_function which is the inverse of SFI::is_toplevel (Closed)
Patch Set: Also remove is_function from FunctionLiteral 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/debug/debug-evaluate.cc ('k') | src/objects.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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 7440 matching lines...) Expand 10 before | Expand all | Expand 10 after
7451 // Though it's anonymous, toString should treat it as if it had the name 7451 // Though it's anonymous, toString should treat it as if it had the name
7452 // "anonymous". We don't set the name itself so that the system does not 7452 // "anonymous". We don't set the name itself so that the system does not
7453 // see a binding for it. 7453 // see a binding for it.
7454 DECL_BOOLEAN_ACCESSORS(name_should_print_as_anonymous) 7454 DECL_BOOLEAN_ACCESSORS(name_should_print_as_anonymous)
7455 7455
7456 // Indicates that the function is either an anonymous expression 7456 // Indicates that the function is either an anonymous expression
7457 // or an arrow function (the name field can be set through the API, 7457 // or an arrow function (the name field can be set through the API,
7458 // which does not change this flag). 7458 // which does not change this flag).
7459 DECL_BOOLEAN_ACCESSORS(is_anonymous_expression) 7459 DECL_BOOLEAN_ACCESSORS(is_anonymous_expression)
7460 7460
7461 // Is this a function or top-level/eval code.
7462 DECL_BOOLEAN_ACCESSORS(is_function)
7463
7464 // Indicates that code for this function must be compiled through the 7461 // Indicates that code for this function must be compiled through the
7465 // Ignition / TurboFan pipeline, and is unsupported by 7462 // Ignition / TurboFan pipeline, and is unsupported by
7466 // FullCodegen / Crankshaft. 7463 // FullCodegen / Crankshaft.
7467 DECL_BOOLEAN_ACCESSORS(must_use_ignition_turbo) 7464 DECL_BOOLEAN_ACCESSORS(must_use_ignition_turbo)
7468 7465
7469 // Indicates that code for this function cannot be flushed. 7466 // Indicates that code for this function cannot be flushed.
7470 DECL_BOOLEAN_ACCESSORS(dont_flush) 7467 DECL_BOOLEAN_ACCESSORS(dont_flush)
7471 7468
7472 // Indicates that this function is an asm function. 7469 // Indicates that this function is an asm function.
7473 DECL_BOOLEAN_ACCESSORS(asm_function) 7470 DECL_BOOLEAN_ACCESSORS(asm_function)
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
7753 kHasDuplicateParameters, 7750 kHasDuplicateParameters,
7754 kNative, 7751 kNative,
7755 kStrictModeFunction, 7752 kStrictModeFunction,
7756 kUsesArguments, 7753 kUsesArguments,
7757 kNeedsHomeObject, 7754 kNeedsHomeObject,
7758 // byte 1 7755 // byte 1
7759 kForceInline, 7756 kForceInline,
7760 kIsAsmFunction, 7757 kIsAsmFunction,
7761 kIsAnonymousExpression, 7758 kIsAnonymousExpression,
7762 kNameShouldPrintAsAnonymous, 7759 kNameShouldPrintAsAnonymous,
7763 kIsFunction,
7764 kMustUseIgnitionTurbo, 7760 kMustUseIgnitionTurbo,
7765 kDontFlush, 7761 kDontFlush,
7766 kIsDeclaration, 7762 kIsDeclaration,
7763
7764 kUnused, // unused.
7767 // byte 2 7765 // byte 2
7768 kFunctionKind, 7766 kFunctionKind,
7769 // rest of byte 2 and first two bits of byte 3 are used by FunctionKind 7767 // rest of byte 2 and first two bits of byte 3 are used by FunctionKind
7770 // byte 3 7768 // byte 3
7771 kDeserialized = kFunctionKind + 10, 7769 kDeserialized = kFunctionKind + 10,
7772 kIsAsmWasmBroken, 7770 kIsAsmWasmBroken,
7773 kCompilerHintsCount, // Pseudo entry 7771 kCompilerHintsCount, // Pseudo entry
7774 }; 7772 };
7775 // kFunctionKind has to be byte-aligned 7773 // kFunctionKind has to be byte-aligned
7776 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0); 7774 STATIC_ASSERT((kFunctionKind % kBitsPerByte) == 0);
(...skipping 3971 matching lines...) Expand 10 before | Expand all | Expand 10 after
11748 } 11746 }
11749 }; 11747 };
11750 11748
11751 11749
11752 } // NOLINT, false-positive due to second-order macros. 11750 } // NOLINT, false-positive due to second-order macros.
11753 } // NOLINT, false-positive due to second-order macros. 11751 } // NOLINT, false-positive due to second-order macros.
11754 11752
11755 #include "src/objects/object-macros-undef.h" 11753 #include "src/objects/object-macros-undef.h"
11756 11754
11757 #endif // V8_OBJECTS_H_ 11755 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/debug/debug-evaluate.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698