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

Side by Side Diff: src/objects-inl.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/objects.cc ('k') | src/runtime/runtime-internal.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 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 6224 matching lines...) Expand 10 before | Expand all | Expand 10 after
6235 6235
6236 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, needs_home_object, 6236 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, needs_home_object,
6237 kNeedsHomeObject) 6237 kNeedsHomeObject)
6238 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) 6238 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative)
6239 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, force_inline, kForceInline) 6239 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, force_inline, kForceInline)
6240 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, 6240 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints,
6241 name_should_print_as_anonymous, 6241 name_should_print_as_anonymous,
6242 kNameShouldPrintAsAnonymous) 6242 kNameShouldPrintAsAnonymous)
6243 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous_expression, 6243 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous_expression,
6244 kIsAnonymousExpression) 6244 kIsAnonymousExpression)
6245 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction)
6246 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo, 6245 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo,
6247 kMustUseIgnitionTurbo) 6246 kMustUseIgnitionTurbo)
6248 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) 6247 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush)
6249 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, 6248 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken,
6250 kIsAsmWasmBroken) 6249 kIsAsmWasmBroken)
6251 6250
6252 bool Script::HasValidSource() { 6251 bool Script::HasValidSource() {
6253 Object* src = this->source(); 6252 Object* src = this->source();
6254 if (!src->IsString()) return true; 6253 if (!src->IsString()) return true;
6255 String* src_str = String::cast(src); 6254 String* src_str = String::cast(src);
(...skipping 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after
8453 #undef WRITE_INT64_FIELD 8452 #undef WRITE_INT64_FIELD
8454 #undef READ_BYTE_FIELD 8453 #undef READ_BYTE_FIELD
8455 #undef WRITE_BYTE_FIELD 8454 #undef WRITE_BYTE_FIELD
8456 #undef NOBARRIER_READ_BYTE_FIELD 8455 #undef NOBARRIER_READ_BYTE_FIELD
8457 #undef NOBARRIER_WRITE_BYTE_FIELD 8456 #undef NOBARRIER_WRITE_BYTE_FIELD
8458 8457
8459 } // namespace internal 8458 } // namespace internal
8460 } // namespace v8 8459 } // namespace v8
8461 8460
8462 #endif // V8_OBJECTS_INL_H_ 8461 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698