OLD | NEW |
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 #include "src/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <iomanip> | 8 #include <iomanip> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1914 String* str = String::cast(fun_name); | 1914 String* str = String::cast(fun_name); |
1915 if (str->length() > 0) { | 1915 if (str->length() > 0) { |
1916 accumulator->Add("<JS Function "); | 1916 accumulator->Add("<JS Function "); |
1917 accumulator->Put(str); | 1917 accumulator->Put(str); |
1918 printed = true; | 1918 printed = true; |
1919 } | 1919 } |
1920 } | 1920 } |
1921 if (!printed) { | 1921 if (!printed) { |
1922 accumulator->Add("<JS Function"); | 1922 accumulator->Add("<JS Function"); |
1923 } | 1923 } |
| 1924 if (FLAG_trace_file_names) { |
| 1925 Object* source_name = |
| 1926 Script::cast(function->shared()->script())->name(); |
| 1927 if (source_name->IsString()) { |
| 1928 String* str = String::cast(source_name); |
| 1929 if (str->length() > 0) { |
| 1930 accumulator->Add(" <"); |
| 1931 accumulator->Put(str); |
| 1932 accumulator->Add(">"); |
| 1933 } |
| 1934 } |
| 1935 } |
1924 accumulator->Add(" (SharedFunctionInfo %p)", | 1936 accumulator->Add(" (SharedFunctionInfo %p)", |
1925 reinterpret_cast<void*>(function->shared())); | 1937 reinterpret_cast<void*>(function->shared())); |
1926 accumulator->Put('>'); | 1938 accumulator->Put('>'); |
1927 break; | 1939 break; |
1928 } | 1940 } |
1929 case JS_GENERATOR_OBJECT_TYPE: { | 1941 case JS_GENERATOR_OBJECT_TYPE: { |
1930 accumulator->Add("<JS Generator>"); | 1942 accumulator->Add("<JS Generator>"); |
1931 break; | 1943 break; |
1932 } | 1944 } |
1933 case JS_MODULE_TYPE: { | 1945 case JS_MODULE_TYPE: { |
(...skipping 17127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19061 if (cell->value() != *new_value) { | 19073 if (cell->value() != *new_value) { |
19062 cell->set_value(*new_value); | 19074 cell->set_value(*new_value); |
19063 Isolate* isolate = cell->GetIsolate(); | 19075 Isolate* isolate = cell->GetIsolate(); |
19064 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19076 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
19065 isolate, DependentCode::kPropertyCellChangedGroup); | 19077 isolate, DependentCode::kPropertyCellChangedGroup); |
19066 } | 19078 } |
19067 } | 19079 } |
19068 | 19080 |
19069 } // namespace internal | 19081 } // namespace internal |
19070 } // namespace v8 | 19082 } // namespace v8 |
OLD | NEW |