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

Side by Side Diff: src/ic/ic.cc

Issue 908883002: new classes: implement new.target passing to superclass constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix x64 arithmetic Created 5 years, 10 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/ia32/full-codegen-ia32.cc ('k') | src/objects.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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 break; 1230 break;
1231 } 1231 }
1232 CallOptimization call_optimization(function); 1232 CallOptimization call_optimization(function);
1233 NamedLoadHandlerCompiler compiler(isolate(), receiver_type(), holder, 1233 NamedLoadHandlerCompiler compiler(isolate(), receiver_type(), holder,
1234 cache_holder); 1234 cache_holder);
1235 if (call_optimization.is_simple_api_call() && 1235 if (call_optimization.is_simple_api_call() &&
1236 call_optimization.IsCompatibleReceiver(receiver, holder)) { 1236 call_optimization.IsCompatibleReceiver(receiver, holder)) {
1237 return compiler.CompileLoadCallback(lookup->name(), call_optimization, 1237 return compiler.CompileLoadCallback(lookup->name(), call_optimization,
1238 lookup->GetAccessorIndex()); 1238 lookup->GetAccessorIndex());
1239 } 1239 }
1240 int expected_arguments = function->shared()->formal_parameter_count(); 1240 int expected_arguments =
1241 function->shared()->internal_formal_parameter_count();
1241 return compiler.CompileLoadViaGetter( 1242 return compiler.CompileLoadViaGetter(
1242 lookup->name(), lookup->GetAccessorIndex(), expected_arguments); 1243 lookup->name(), lookup->GetAccessorIndex(), expected_arguments);
1243 } 1244 }
1244 break; 1245 break;
1245 } 1246 }
1246 1247
1247 case LookupIterator::DATA: { 1248 case LookupIterator::DATA: {
1248 if (lookup->is_dictionary_holder()) { 1249 if (lookup->is_dictionary_holder()) {
1249 if (kind() != Code::LOAD_IC) break; 1250 if (kind() != Code::LOAD_IC) break;
1250 if (holder->IsGlobalObject()) { 1251 if (holder->IsGlobalObject()) {
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 } 1737 }
1737 Handle<JSFunction> function = Handle<JSFunction>::cast(setter); 1738 Handle<JSFunction> function = Handle<JSFunction>::cast(setter);
1738 CallOptimization call_optimization(function); 1739 CallOptimization call_optimization(function);
1739 NamedStoreHandlerCompiler compiler(isolate(), receiver_type(), holder); 1740 NamedStoreHandlerCompiler compiler(isolate(), receiver_type(), holder);
1740 if (call_optimization.is_simple_api_call() && 1741 if (call_optimization.is_simple_api_call() &&
1741 call_optimization.IsCompatibleReceiver(receiver, holder)) { 1742 call_optimization.IsCompatibleReceiver(receiver, holder)) {
1742 return compiler.CompileStoreCallback(receiver, lookup->name(), 1743 return compiler.CompileStoreCallback(receiver, lookup->name(),
1743 call_optimization, 1744 call_optimization,
1744 lookup->GetAccessorIndex()); 1745 lookup->GetAccessorIndex());
1745 } 1746 }
1746 int expected_arguments = function->shared()->formal_parameter_count(); 1747 int expected_arguments =
1748 function->shared()->internal_formal_parameter_count();
1747 return compiler.CompileStoreViaSetter(receiver, lookup->name(), 1749 return compiler.CompileStoreViaSetter(receiver, lookup->name(),
1748 lookup->GetAccessorIndex(), 1750 lookup->GetAccessorIndex(),
1749 expected_arguments); 1751 expected_arguments);
1750 } 1752 }
1751 break; 1753 break;
1752 } 1754 }
1753 1755
1754 case LookupIterator::DATA: { 1756 case LookupIterator::DATA: {
1755 if (lookup->is_dictionary_holder()) { 1757 if (lookup->is_dictionary_holder()) {
1756 if (holder->IsGlobalObject()) { 1758 if (holder->IsGlobalObject()) {
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2997 static const Address IC_utilities[] = { 2999 static const Address IC_utilities[] = {
2998 #define ADDR(name) FUNCTION_ADDR(name), 3000 #define ADDR(name) FUNCTION_ADDR(name),
2999 IC_UTIL_LIST(ADDR) NULL 3001 IC_UTIL_LIST(ADDR) NULL
3000 #undef ADDR 3002 #undef ADDR
3001 }; 3003 };
3002 3004
3003 3005
3004 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 3006 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
3005 } 3007 }
3006 } // namespace v8::internal 3008 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698