| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 11907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11918 if (filter[filter.length() - 1] == '*' && | 11918 if (filter[filter.length() - 1] == '*' && |
| 11919 name->IsUtf8EqualTo(filter.SubVector(0, filter.length() - 1), true)) { | 11919 name->IsUtf8EqualTo(filter.SubVector(0, filter.length() - 1), true)) { |
| 11920 return true; | 11920 return true; |
| 11921 } | 11921 } |
| 11922 return false; | 11922 return false; |
| 11923 } | 11923 } |
| 11924 | 11924 |
| 11925 | 11925 |
| 11926 Handle<String> JSFunction::GetDebugName(Handle<JSFunction> function) { | 11926 Handle<String> JSFunction::GetDebugName(Handle<JSFunction> function) { |
| 11927 Isolate* isolate = function->GetIsolate(); | 11927 Isolate* isolate = function->GetIsolate(); |
| 11928 Handle<Object> name = | 11928 Handle<Object> name = JSReceiver::GetDataProperty( |
| 11929 function, isolate->factory()->display_name_string()); |
| 11930 if (name->IsString()) return Handle<String>::cast(name); |
| 11931 name = |
| 11929 JSReceiver::GetDataProperty(function, isolate->factory()->name_string()); | 11932 JSReceiver::GetDataProperty(function, isolate->factory()->name_string()); |
| 11930 if (name->IsString()) return Handle<String>::cast(name); | 11933 if (name->IsString()) return Handle<String>::cast(name); |
| 11931 return handle(function->shared()->DebugName(), isolate); | 11934 return handle(function->shared()->DebugName(), isolate); |
| 11932 } | 11935 } |
| 11933 | 11936 |
| 11934 | 11937 |
| 11935 void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball, | 11938 void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball, |
| 11936 const char* to_string, Handle<Object> to_number, | 11939 const char* to_string, Handle<Object> to_number, |
| 11937 const char* type_of, byte kind) { | 11940 const char* type_of, byte kind) { |
| 11938 Handle<String> internalized_to_string = | 11941 Handle<String> internalized_to_string = |
| (...skipping 6052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17991 if (cell->value() != *new_value) { | 17994 if (cell->value() != *new_value) { |
| 17992 cell->set_value(*new_value); | 17995 cell->set_value(*new_value); |
| 17993 Isolate* isolate = cell->GetIsolate(); | 17996 Isolate* isolate = cell->GetIsolate(); |
| 17994 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 17997 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 17995 isolate, DependentCode::kPropertyCellChangedGroup); | 17998 isolate, DependentCode::kPropertyCellChangedGroup); |
| 17996 } | 17999 } |
| 17997 } | 18000 } |
| 17998 | 18001 |
| 17999 } // namespace internal | 18002 } // namespace internal |
| 18000 } // namespace v8 | 18003 } // namespace v8 |
| OLD | NEW |