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

Side by Side Diff: src/builtins.cc

Issue 847913005: move HandleApiCall builtin to assembly (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 11 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/builtins.h ('k') | src/code-stubs.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 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/base/once.h" 9 #include "src/base/once.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 } 1124 }
1125 1125
1126 RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); 1126 RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate);
1127 if (!is_construct || result->IsJSObject()) return result; 1127 if (!is_construct || result->IsJSObject()) return result;
1128 } 1128 }
1129 1129
1130 return *args.receiver(); 1130 return *args.receiver();
1131 } 1131 }
1132 1132
1133 1133
1134 BUILTIN(HandleApiCall) {
1135 return HandleApiCallHelper<false>(args, isolate);
1136 }
1137
1138
1139 BUILTIN(HandleApiCallConstruct) { 1134 BUILTIN(HandleApiCallConstruct) {
1140 return HandleApiCallHelper<true>(args, isolate); 1135 return HandleApiCallHelper<true>(args, isolate);
1141 } 1136 }
1142 1137
1143 1138
1144 // Helper function to handle calls to non-function objects created through the 1139 // Helper function to handle calls to non-function objects created through the
1145 // API. The object can be called as either a constructor (using new) or just as 1140 // API. The object can be called as either a constructor (using new) or just as
1146 // a function (without new). 1141 // a function (without new).
1147 MUST_USE_RESULT static Object* HandleApiCallAsFunctionOrConstructor( 1142 MUST_USE_RESULT static Object* HandleApiCallAsFunctionOrConstructor(
1148 Isolate* isolate, 1143 Isolate* isolate,
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 } 1611 }
1617 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 1612 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
1618 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 1613 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
1619 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) 1614 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H)
1620 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 1615 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
1621 #undef DEFINE_BUILTIN_ACCESSOR_C 1616 #undef DEFINE_BUILTIN_ACCESSOR_C
1622 #undef DEFINE_BUILTIN_ACCESSOR_A 1617 #undef DEFINE_BUILTIN_ACCESSOR_A
1623 1618
1624 1619
1625 } } // namespace v8::internal 1620 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698