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

Side by Side Diff: src/accessors.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 | « no previous file | src/api.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 #include "src/accessors.h" 5 #include "src/accessors.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/contexts.h" 8 #include "src/contexts.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/execution.h" 10 #include "src/execution.h"
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 // Find previously called non-toplevel function. 1314 // Find previously called non-toplevel function.
1315 JSFunction* caller; 1315 JSFunction* caller;
1316 do { 1316 do {
1317 caller = it.next(); 1317 caller = it.next();
1318 if (caller == NULL) return MaybeHandle<JSFunction>(); 1318 if (caller == NULL) return MaybeHandle<JSFunction>();
1319 } while (caller->shared()->is_toplevel()); 1319 } while (caller->shared()->is_toplevel());
1320 1320
1321 // If caller is a built-in function and caller's caller is also built-in, 1321 // If caller is a built-in function and caller's caller is also built-in,
1322 // use that instead. 1322 // use that instead.
1323 JSFunction* potential_caller = caller; 1323 JSFunction* potential_caller = caller;
1324 while (potential_caller != NULL && potential_caller->IsBuiltin()) { 1324 while (potential_caller != NULL && potential_caller->shared()->IsBuiltin()) {
1325 caller = potential_caller; 1325 caller = potential_caller;
1326 potential_caller = it.next(); 1326 potential_caller = it.next();
1327 } 1327 }
1328 if (!caller->shared()->native() && potential_caller != NULL) { 1328 if (!caller->shared()->native() && potential_caller != NULL) {
1329 caller = potential_caller; 1329 caller = potential_caller;
1330 } 1330 }
1331 // If caller is bound, return null. This is compatible with JSC, and 1331 // If caller is bound, return null. This is compatible with JSC, and
1332 // allows us to make bound functions use the strict function map 1332 // allows us to make bound functions use the strict function map
1333 // and its associated throwing caller and arguments. 1333 // and its associated throwing caller and arguments.
1334 if (caller->shared()->bound()) { 1334 if (caller->shared()->bound()) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); 1467 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport);
1468 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); 1468 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport);
1469 info->set_getter(*getter); 1469 info->set_getter(*getter);
1470 if (!(attributes & ReadOnly)) info->set_setter(*setter); 1470 if (!(attributes & ReadOnly)) info->set_setter(*setter);
1471 return info; 1471 return info;
1472 } 1472 }
1473 1473
1474 1474
1475 } // namespace internal 1475 } // namespace internal
1476 } // namespace v8 1476 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698