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

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

Issue 906463002: add support for all can read interceptors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/api.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 2930 matching lines...) Expand 10 before | Expand all | Expand 10 after
2941 2941
2942 2942
2943 RUNTIME_FUNCTION(LoadElementWithInterceptor) { 2943 RUNTIME_FUNCTION(LoadElementWithInterceptor) {
2944 HandleScope scope(isolate); 2944 HandleScope scope(isolate);
2945 Handle<JSObject> receiver = args.at<JSObject>(0); 2945 Handle<JSObject> receiver = args.at<JSObject>(0);
2946 DCHECK(args.smi_at(1) >= 0); 2946 DCHECK(args.smi_at(1) >= 0);
2947 uint32_t index = args.smi_at(1); 2947 uint32_t index = args.smi_at(1);
2948 Handle<Object> result; 2948 Handle<Object> result;
2949 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 2949 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
2950 isolate, result, 2950 isolate, result,
2951 JSObject::GetElementWithInterceptor(receiver, receiver, index)); 2951 JSObject::GetElementWithInterceptor(receiver, receiver, index, true));
2952 return *result; 2952 return *result;
2953 } 2953 }
2954 2954
2955 2955
2956 RUNTIME_FUNCTION(LoadIC_MissFromStubFailure) { 2956 RUNTIME_FUNCTION(LoadIC_MissFromStubFailure) {
2957 TimerEventScope<TimerEventIcMiss> timer(isolate); 2957 TimerEventScope<TimerEventIcMiss> timer(isolate);
2958 HandleScope scope(isolate); 2958 HandleScope scope(isolate);
2959 Handle<Object> receiver = args.at<Object>(0); 2959 Handle<Object> receiver = args.at<Object>(0);
2960 Handle<Name> key = args.at<Name>(1); 2960 Handle<Name> key = args.at<Name>(1);
2961 Handle<Object> result; 2961 Handle<Object> result;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2996 static const Address IC_utilities[] = { 2996 static const Address IC_utilities[] = {
2997 #define ADDR(name) FUNCTION_ADDR(name), 2997 #define ADDR(name) FUNCTION_ADDR(name),
2998 IC_UTIL_LIST(ADDR) NULL 2998 IC_UTIL_LIST(ADDR) NULL
2999 #undef ADDR 2999 #undef ADDR
3000 }; 3000 };
3001 3001
3002 3002
3003 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 3003 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
3004 } 3004 }
3005 } // namespace v8::internal 3005 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698