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

Side by Side Diff: src/objects-inl.h

Issue 2402663002: Reland "[turbofan] Discard the shared code entry in the optimized code map." (Closed)
Patch Set: Patch failure(?) Created 4 years, 2 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') | test/cctest/test-compiler.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 6400 matching lines...) Expand 10 before | Expand all | Expand 10 after
6411 Script* script = Script::cast(script_obj); 6411 Script* script = Script::cast(script_obj);
6412 Script::Type type = static_cast<Script::Type>(script->type()); 6412 Script::Type type = static_cast<Script::Type>(script->type());
6413 return type != Script::TYPE_NORMAL; 6413 return type != Script::TYPE_NORMAL;
6414 } 6414 }
6415 6415
6416 6416
6417 bool SharedFunctionInfo::IsSubjectToDebugging() { return !IsBuiltin(); } 6417 bool SharedFunctionInfo::IsSubjectToDebugging() { return !IsBuiltin(); }
6418 6418
6419 6419
6420 bool SharedFunctionInfo::OptimizedCodeMapIsCleared() const { 6420 bool SharedFunctionInfo::OptimizedCodeMapIsCleared() const {
6421 return optimized_code_map() == GetHeap()->cleared_optimized_code_map(); 6421 return optimized_code_map() == GetHeap()->empty_fixed_array();
6422 } 6422 }
6423 6423
6424 6424
6425 bool JSFunction::IsOptimized() { 6425 bool JSFunction::IsOptimized() {
6426 return code()->kind() == Code::OPTIMIZED_FUNCTION; 6426 return code()->kind() == Code::OPTIMIZED_FUNCTION;
6427 } 6427 }
6428 6428
6429 bool JSFunction::IsMarkedForBaseline() { 6429 bool JSFunction::IsMarkedForBaseline() {
6430 return code() == 6430 return code() ==
6431 GetIsolate()->builtins()->builtin(Builtins::kCompileBaseline); 6431 GetIsolate()->builtins()->builtin(Builtins::kCompileBaseline);
(...skipping 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after
8315 #undef WRITE_INT64_FIELD 8315 #undef WRITE_INT64_FIELD
8316 #undef READ_BYTE_FIELD 8316 #undef READ_BYTE_FIELD
8317 #undef WRITE_BYTE_FIELD 8317 #undef WRITE_BYTE_FIELD
8318 #undef NOBARRIER_READ_BYTE_FIELD 8318 #undef NOBARRIER_READ_BYTE_FIELD
8319 #undef NOBARRIER_WRITE_BYTE_FIELD 8319 #undef NOBARRIER_WRITE_BYTE_FIELD
8320 8320
8321 } // namespace internal 8321 } // namespace internal
8322 } // namespace v8 8322 } // namespace v8
8323 8323
8324 #endif // V8_OBJECTS_INL_H_ 8324 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698