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

Side by Side Diff: src/stub-cache.cc

Issue 83753002: Use the HandlerFrontendHeader in most call compilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: X64 port Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 holder->LocalLookupRealNamedProperty(*name, lookup); 1119 holder->LocalLookupRealNamedProperty(*name, lookup);
1120 if (lookup->IsFound()) return; 1120 if (lookup->IsFound()) return;
1121 if (holder->GetPrototype()->IsNull()) return; 1121 if (holder->GetPrototype()->IsNull()) return;
1122 holder->GetPrototype()->Lookup(*name, lookup); 1122 holder->GetPrototype()->Lookup(*name, lookup);
1123 } 1123 }
1124 1124
1125 1125
1126 #define __ ACCESS_MASM(masm()) 1126 #define __ ACCESS_MASM(masm())
1127 1127
1128 1128
1129 void CallStubCompiler::HandlerFrontendFooter(Label* miss) {
1130 __ bind(miss);
1131 GenerateMissBranch();
1132 }
1133
1134
1129 Register LoadStubCompiler::HandlerFrontendHeader( 1135 Register LoadStubCompiler::HandlerFrontendHeader(
1130 Handle<Type> type, 1136 Handle<Type> type,
1131 Register object_reg, 1137 Register object_reg,
1132 Handle<JSObject> holder, 1138 Handle<JSObject> holder,
1133 Handle<Name> name, 1139 Handle<Name> name,
1134 Label* miss) { 1140 Label* miss) {
1135 PrototypeCheckType check_type = CHECK_ALL_MAPS; 1141 PrototypeCheckType check_type = CHECK_ALL_MAPS;
1136 int function_index = -1; 1142 int function_index = -1;
1137 if (type->Is(Type::String())) { 1143 if (type->Is(Type::String())) {
1138 function_index = Context::STRING_FUNCTION_INDEX; 1144 function_index = Context::STRING_FUNCTION_INDEX;
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1833 Handle<FunctionTemplateInfo>( 1839 Handle<FunctionTemplateInfo>(
1834 FunctionTemplateInfo::cast(signature->receiver())); 1840 FunctionTemplateInfo::cast(signature->receiver()));
1835 } 1841 }
1836 } 1842 }
1837 1843
1838 is_simple_api_call_ = true; 1844 is_simple_api_call_ = true;
1839 } 1845 }
1840 1846
1841 1847
1842 } } // namespace v8::internal 1848 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698