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

Side by Side Diff: src/code-stubs.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/code-stubs.h ('k') | src/factory.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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 964 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
965 } 965 }
966 966
967 967
968 InternalArrayConstructorStub::InternalArrayConstructorStub( 968 InternalArrayConstructorStub::InternalArrayConstructorStub(
969 Isolate* isolate) : PlatformCodeStub(isolate) { 969 Isolate* isolate) : PlatformCodeStub(isolate) {
970 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 970 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
971 } 971 }
972 972
973 973
974 JSApiFunctionStub::JSApiFunctionStub(Isolate* isolate,
975 Handle<FunctionTemplateInfo> info)
976 : PlatformCodeStub(isolate) {
977 // TODO(dcarney): CHECK if these properties are changes after first
978 // instantiation.
979 bool has_call_code = !info->call_code()->IsUndefined();
980 bool call_data_undefined = true;
981 bool has_signature = !info->signature()->IsUndefined();
982 if (has_call_code) {
983 auto handler = handle(CallHandlerInfo::cast(info->call_code()));
984 call_data_undefined = handler->data()->IsUndefined();
985 }
986 minor_key_ = CallDataUndefinedBits::encode(call_data_undefined) |
987 HasCallCodeBits::encode(has_call_code) |
988 HasSignatureBits::encode(has_signature);
989 }
974 } } // namespace v8::internal 990 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698