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

Side by Side Diff: src/objects.h

Issue 1140743004: Generalize builtins inlining flag to allow forced inlining of any function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment Created 5 years, 7 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/math.js ('k') | src/objects-inl.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 7056 matching lines...) Expand 10 before | Expand all | Expand 10 after
7067 7067
7068 // True if the function has any duplicated parameter names. 7068 // True if the function has any duplicated parameter names.
7069 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters) 7069 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters)
7070 7070
7071 // Indicates whether the function is a native function. 7071 // Indicates whether the function is a native function.
7072 // These needs special treatment in .call and .apply since 7072 // These needs special treatment in .call and .apply since
7073 // null passed as the receiver should not be translated to the 7073 // null passed as the receiver should not be translated to the
7074 // global object. 7074 // global object.
7075 DECL_BOOLEAN_ACCESSORS(native) 7075 DECL_BOOLEAN_ACCESSORS(native)
7076 7076
7077 // Indicate that this builtin needs to be inlined in crankshaft. 7077 // Indicate that this function should always be inlined in optimized code.
7078 DECL_BOOLEAN_ACCESSORS(inline_builtin) 7078 DECL_BOOLEAN_ACCESSORS(force_inline)
7079 7079
7080 // Indicates that the function was created by the Function function. 7080 // Indicates that the function was created by the Function function.
7081 // Though it's anonymous, toString should treat it as if it had the name 7081 // Though it's anonymous, toString should treat it as if it had the name
7082 // "anonymous". We don't set the name itself so that the system does not 7082 // "anonymous". We don't set the name itself so that the system does not
7083 // see a binding for it. 7083 // see a binding for it.
7084 DECL_BOOLEAN_ACCESSORS(name_should_print_as_anonymous) 7084 DECL_BOOLEAN_ACCESSORS(name_should_print_as_anonymous)
7085 7085
7086 // Indicates whether the function is a bound function created using 7086 // Indicates whether the function is a bound function created using
7087 // the bind function. 7087 // the bind function.
7088 DECL_BOOLEAN_ACCESSORS(bound) 7088 DECL_BOOLEAN_ACCESSORS(bound)
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
7346 enum CompilerHints { 7346 enum CompilerHints {
7347 kAllowLazyCompilation, 7347 kAllowLazyCompilation,
7348 kAllowLazyCompilationWithoutContext, 7348 kAllowLazyCompilationWithoutContext,
7349 kOptimizationDisabled, 7349 kOptimizationDisabled,
7350 kStrictModeFunction, 7350 kStrictModeFunction,
7351 kStrongModeFunction, 7351 kStrongModeFunction,
7352 kUsesArguments, 7352 kUsesArguments,
7353 kUsesSuperProperty, 7353 kUsesSuperProperty,
7354 kHasDuplicateParameters, 7354 kHasDuplicateParameters,
7355 kNative, 7355 kNative,
7356 kInlineBuiltin, 7356 kForceInline,
7357 kBoundFunction, 7357 kBoundFunction,
7358 kIsAnonymous, 7358 kIsAnonymous,
7359 kNameShouldPrintAsAnonymous, 7359 kNameShouldPrintAsAnonymous,
7360 kIsFunction, 7360 kIsFunction,
7361 kDontCache, 7361 kDontCache,
7362 kDontFlush, 7362 kDontFlush,
7363 kIsArrow, 7363 kIsArrow,
7364 kIsGenerator, 7364 kIsGenerator,
7365 kIsConciseMethod, 7365 kIsConciseMethod,
7366 kIsAccessorFunction, 7366 kIsAccessorFunction,
(...skipping 3745 matching lines...) Expand 10 before | Expand all | Expand 10 after
11112 } else { 11112 } else {
11113 value &= ~(1 << bit_position); 11113 value &= ~(1 << bit_position);
11114 } 11114 }
11115 return value; 11115 return value;
11116 } 11116 }
11117 }; 11117 };
11118 11118
11119 } } // namespace v8::internal 11119 } } // namespace v8::internal
11120 11120
11121 #endif // V8_OBJECTS_H_ 11121 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/math.js ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698