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

Side by Side Diff: src/objects.cc

Issue 1417213005: Remove several JSFunction delegator functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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.h ('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 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 11969 matching lines...) Expand 10 before | Expand all | Expand 10 after
11980 DCHECK(prototype->IsJSReceiver()); 11980 DCHECK(prototype->IsJSReceiver());
11981 if (map->prototype() != *prototype) { 11981 if (map->prototype() != *prototype) {
11982 Map::SetPrototype(map, prototype, FAST_PROTOTYPE); 11982 Map::SetPrototype(map, prototype, FAST_PROTOTYPE);
11983 } 11983 }
11984 map->SetConstructor(*constructor); 11984 map->SetConstructor(*constructor);
11985 return map; 11985 return map;
11986 } 11986 }
11987 } 11987 }
11988 11988
11989 11989
11990 void JSFunction::SetInstanceClassName(String* name) {
11991 shared()->set_instance_class_name(name);
11992 }
11993
11994
11995 void JSFunction::PrintName(FILE* out) { 11990 void JSFunction::PrintName(FILE* out) {
11996 base::SmartArrayPointer<char> name = shared()->DebugName()->ToCString(); 11991 base::SmartArrayPointer<char> name = shared()->DebugName()->ToCString();
11997 PrintF(out, "%s", name.get()); 11992 PrintF(out, "%s", name.get());
11998 } 11993 }
11999 11994
12000 11995
12001 // The filter is a pattern that matches function names in this way: 11996 // The filter is a pattern that matches function names in this way:
12002 // "*" all; the default 11997 // "*" all; the default
12003 // "-" all but the top-level function 11998 // "-" all but the top-level function
12004 // "-name" all but the function "name" 11999 // "-name" all but the function "name"
(...skipping 6055 matching lines...) Expand 10 before | Expand all | Expand 10 after
18060 if (cell->value() != *new_value) { 18055 if (cell->value() != *new_value) {
18061 cell->set_value(*new_value); 18056 cell->set_value(*new_value);
18062 Isolate* isolate = cell->GetIsolate(); 18057 Isolate* isolate = cell->GetIsolate();
18063 cell->dependent_code()->DeoptimizeDependentCodeGroup( 18058 cell->dependent_code()->DeoptimizeDependentCodeGroup(
18064 isolate, DependentCode::kPropertyCellChangedGroup); 18059 isolate, DependentCode::kPropertyCellChangedGroup);
18065 } 18060 }
18066 } 18061 }
18067 18062
18068 } // namespace internal 18063 } // namespace internal
18069 } // namespace v8 18064 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698