OLD | NEW |
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/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2098 } | 2098 } |
2099 | 2099 |
2100 | 2100 |
2101 // Used from ic-<arch>.cc. | 2101 // Used from ic-<arch>.cc. |
2102 RUNTIME_FUNCTION(LoadIC_Miss) { | 2102 RUNTIME_FUNCTION(LoadIC_Miss) { |
2103 TimerEventScope<TimerEventIcMiss> timer(isolate); | 2103 TimerEventScope<TimerEventIcMiss> timer(isolate); |
2104 HandleScope scope(isolate); | 2104 HandleScope scope(isolate); |
2105 DCHECK(args.length() == 2); | 2105 DCHECK(args.length() == 2); |
2106 LoadIC ic(IC::NO_EXTRA_FRAME, isolate); | 2106 LoadIC ic(IC::NO_EXTRA_FRAME, isolate); |
2107 Handle<Object> receiver = args.at<Object>(0); | 2107 Handle<Object> receiver = args.at<Object>(0); |
2108 Handle<String> key = args.at<String>(1); | 2108 Handle<Name> key = args.at<Name>(1); |
2109 ic.UpdateState(receiver, key); | 2109 ic.UpdateState(receiver, key); |
2110 Handle<Object> result; | 2110 Handle<Object> result; |
2111 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, ic.Load(receiver, key)); | 2111 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, ic.Load(receiver, key)); |
2112 return *result; | 2112 return *result; |
2113 } | 2113 } |
2114 | 2114 |
2115 | 2115 |
2116 // Used from ic-<arch>.cc | 2116 // Used from ic-<arch>.cc |
2117 RUNTIME_FUNCTION(KeyedLoadIC_Miss) { | 2117 RUNTIME_FUNCTION(KeyedLoadIC_Miss) { |
2118 TimerEventScope<TimerEventIcMiss> timer(isolate); | 2118 TimerEventScope<TimerEventIcMiss> timer(isolate); |
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3170 #undef ADDR | 3170 #undef ADDR |
3171 }; | 3171 }; |
3172 | 3172 |
3173 | 3173 |
3174 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 3174 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
3175 return IC_utilities[id]; | 3175 return IC_utilities[id]; |
3176 } | 3176 } |
3177 | 3177 |
3178 | 3178 |
3179 } } // namespace v8::internal | 3179 } } // namespace v8::internal |
OLD | NEW |