OLD | NEW |
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 266 |
267 RelocInfo::Mode IC::ComputeMode() { | 267 RelocInfo::Mode IC::ComputeMode() { |
268 Address addr = address(); | 268 Address addr = address(); |
269 Code* code = Code::cast(isolate()->heap()->FindCodeObject(addr)); | 269 Code* code = Code::cast(isolate()->heap()->FindCodeObject(addr)); |
270 for (RelocIterator it(code, RelocInfo::kCodeTargetMask); | 270 for (RelocIterator it(code, RelocInfo::kCodeTargetMask); |
271 !it.done(); it.next()) { | 271 !it.done(); it.next()) { |
272 RelocInfo* info = it.rinfo(); | 272 RelocInfo* info = it.rinfo(); |
273 if (info->pc() == addr) return info->rmode(); | 273 if (info->pc() == addr) return info->rmode(); |
274 } | 274 } |
275 UNREACHABLE(); | 275 UNREACHABLE(); |
276 return RelocInfo::NONE; | 276 return RelocInfo::NONE32; |
277 } | 277 } |
278 | 278 |
279 | 279 |
280 Failure* IC::TypeError(const char* type, | 280 Failure* IC::TypeError(const char* type, |
281 Handle<Object> object, | 281 Handle<Object> object, |
282 Handle<Object> key) { | 282 Handle<Object> key) { |
283 HandleScope scope(isolate()); | 283 HandleScope scope(isolate()); |
284 Handle<Object> args[2] = { key, object }; | 284 Handle<Object> args[2] = { key, object }; |
285 Handle<Object> error = isolate()->factory()->NewTypeError( | 285 Handle<Object> error = isolate()->factory()->NewTypeError( |
286 type, HandleVector(args, 2)); | 286 type, HandleVector(args, 2)); |
(...skipping 2488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2775 #undef ADDR | 2775 #undef ADDR |
2776 }; | 2776 }; |
2777 | 2777 |
2778 | 2778 |
2779 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2779 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
2780 return IC_utilities[id]; | 2780 return IC_utilities[id]; |
2781 } | 2781 } |
2782 | 2782 |
2783 | 2783 |
2784 } } // namespace v8::internal | 2784 } } // namespace v8::internal |
OLD | NEW |